Commit d2d1c9c5 authored by Ivan Shynkarenka's avatar Ivan Shynkarenka Committed by Victor Zverovich

warning C4267: 'argument': conversion from 'size_t' to 'DWORD', possible loss of data

parent b6e19e59
......@@ -1351,7 +1351,7 @@ FMT_FUNC void vprint(std::FILE* f, string_view format_str, format_args args) {
internal::utf8_to_utf16 u16(string_view(buffer.data(), buffer.size()));
auto written = DWORD();
if (!WriteConsoleW(reinterpret_cast<HANDLE>(_get_osfhandle(fd)),
u16.c_str(), u16.size(), &written, nullptr)) {
u16.c_str(), static_cast<DWORD>(u16.size()), &written, nullptr)) {
throw format_error("failed to write to console");
}
return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment