Commit 1dc0cc3b authored by Victor Zverovich's avatar Victor Zverovich

Fix a dumb assert on MSVC.

parent 7e911c1e
...@@ -51,7 +51,7 @@ namespace { ...@@ -51,7 +51,7 @@ namespace {
enum { PLUS_FLAG = 1, ZERO_FLAG = 2, HEX_PREFIX_FLAG = 4 }; enum { PLUS_FLAG = 1, ZERO_FLAG = 2, HEX_PREFIX_FLAG = 4 };
void ReportUnknownType(char code, const char *type) { void ReportUnknownType(char code, const char *type) {
if (std::isprint(code)) { if (std::isprint(static_cast<unsigned char>(code))) {
throw fmt::FormatError( throw fmt::FormatError(
str(fmt::Format("unknown format code '{0}' for {1}") << code << type)); str(fmt::Format("unknown format code '{0}' for {1}") << code << type));
} }
......
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