From f88ca7d16d0b93b00945ea561c7973dfa820aad1 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sun, 20 Mar 2022 16:56:11 +0100 Subject: [PATCH] Silence warning about type conversion in test helper It is a possibly lossy conversion but good enough for a test helper. --- tests/iotests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }