Silence warning about type conversion in test helper

It is a possibly lossy conversion but good enough for a test helper.
This commit is contained in:
Martchus 2022-03-20 16:56:11 +01:00
parent 052f8d2bd2
commit f88ca7d16d
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ std::ostream &operator<<(std::ostream &out, const std::wstring &s)
convertUtf16BEToUtf8
#endif
(reinterpret_cast<const char *>(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<std::streamsize>(utf8.second));
return out;
}