Fix a dumb assert on MSVC.
This commit is contained in:
1 parent
7e911c1e75
commit
1dc0cc3b80
1 file changed
+1
-1
@@ -51,7 +51,7 @@ namespace {
|
||||
enum { PLUS_FLAG = 1, ZERO_FLAG = 2, HEX_PREFIX_FLAG = 4 };
|
||||
|
||||
void ReportUnknownType(char code, const char *type) {
|
||||
if (std::isprint(code)) {
|
||||
if (std::isprint(static_cast<unsigned char>(code))) {
|
||||
throw fmt::FormatError(
|
||||
str(fmt::Format("unknown format code '{0}' for {1}") << code << type));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user