diff --git a/src/string.hh b/src/string.hh index 773a6cbc..f86e0661 100644 --- a/src/string.hh +++ b/src/string.hh @@ -23,7 +23,7 @@ public: String(std::string content) : m_content(std::move(content)) {} String(const String& string) = default; String(String&& string) = default; - explicit String(char content, size_t count = 1) : m_content(count, content) {} + explicit String(char content, CharCount count = 1) : m_content((size_t)(int)count, content) {} template String(Iterator begin, Iterator end) : m_content(begin, end) {}