Fix test.

This commit is contained in:
Victor Zverovich 2012-12-16 15:46:06 -08:00
parent 0c816551ad
commit bd274a3b7a

View File

@ -479,7 +479,8 @@ void CheckUnknownTypes(
const T &value, const char *types, const char *type_name) { const T &value, const char *types, const char *type_name) {
char format[256], message[256]; char format[256], message[256];
const char *special = ".0123456789}"; const char *special = ".0123456789}";
for (int c = CHAR_MIN; c <= CHAR_MAX; ++c) { for (int i = CHAR_MIN; i <= CHAR_MAX; ++i) {
char c = i;
if (std::strchr(types, c) || std::strchr(special, c) || !c) continue; if (std::strchr(types, c) || std::strchr(special, c) || !c) continue;
sprintf(format, "{0:1%c}", c); sprintf(format, "{0:1%c}", c);
if (std::isprint(c)) if (std::isprint(c))