From 7e911c1e756a5a4ed6169df4291238ca71699bb4 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 16 Dec 2012 15:50:43 -0800 Subject: [PATCH] Fix a dumb assert on MSVC. --- format_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format_test.cc b/format_test.cc index 1b0c8e91..23c97278 100644 --- a/format_test.cc +++ b/format_test.cc @@ -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(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);