diff --git a/tests/iotests.cpp b/tests/iotests.cpp index c3adb43..d3f4919 100644 --- a/tests/iotests.cpp +++ b/tests/iotests.cpp @@ -14,7 +14,7 @@ std::ostream &operator<<(std::ostream &out, const std::wstring &s) convertUtf16BEToUtf8 #endif (reinterpret_cast(s.data()), s.size() * (sizeof(std::wstring::value_type) / sizeof(char))); - out.write(utf8.first.get(), utf8.second); + out.write(utf8.first.get(), static_cast(utf8.second)); return out; }