io/BufferedOutputStream: add missing char* cast

This commit is contained in:
Max Kellermann 2021-12-07 12:07:08 +01:00
parent cdcef49eef
commit 80c177e9a0

View File

@ -155,7 +155,7 @@ BufferedOutputStream::WriteWideToUTF8(const wchar_t *src,
/* grow the buffer and try again */ /* grow the buffer and try again */
length = WideCharToMultiByte(CP_UTF8, 0, src, src_length, length = WideCharToMultiByte(CP_UTF8, 0, src, src_length,
buffer.Write(length), length, (char *)buffer.Write(length), length,
nullptr, nullptr); nullptr, nullptr);
if (length <= 0) if (length <= 0)
throw MakeLastError(error, "UTF-8 conversion failed"); throw MakeLastError(error, "UTF-8 conversion failed");