mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-29 18:27:40 +02:00
format-inl.h: address implicit int to bool conversion (#3446)
This commit is contained in:
@ -1458,7 +1458,7 @@ FMT_FUNC bool write_console(std::FILE* f, string_view text) {
|
||||
auto u16 = utf8_to_utf16(text);
|
||||
auto written = dword();
|
||||
return WriteConsoleW(reinterpret_cast<void*>(_get_osfhandle(fd)), u16.c_str(),
|
||||
static_cast<uint32_t>(u16.size()), &written, nullptr);
|
||||
static_cast<uint32_t>(u16.size()), &written, nullptr) != 0;
|
||||
}
|
||||
|
||||
// Print assuming legacy (non-Unicode) encoding.
|
||||
|
Reference in New Issue
Block a user