Fix a dumb assert on MSVC.

This commit is contained in:
Victor Zverovich 2012-12-16 15:56:44 -08:00
parent 7e911c1e75
commit 1dc0cc3b80

View File

@ -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));
}