Commit bd274a3b authored by Victor Zverovich's avatar Victor Zverovich

Fix test.

parent 0c816551
...@@ -479,7 +479,8 @@ void CheckUnknownTypes( ...@@ -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))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment