mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 20:32:49 +00:00
Fix a dumb assert on MSVC.
This commit is contained in:
parent
bd274a3b7a
commit
7e911c1e75
@ -483,7 +483,7 @@ void CheckUnknownTypes(
|
||||
char c = i;
|
||||
if (std::strchr(types, c) || std::strchr(special, c) || !c) continue;
|
||||
sprintf(format, "{0:1%c}", c);
|
||||
if (std::isprint(c))
|
||||
if (std::isprint(static_cast<unsigned char>(c)))
|
||||
sprintf(message, "unknown format code '%c' for %s", c, type_name);
|
||||
else
|
||||
sprintf(message, "unknown format code '\\x%02x' for %s", c, type_name);
|
||||
|
Loading…
Reference in New Issue
Block a user