diff --git a/test/config_info.cpp b/test/config_info.cpp index b00a0605..732525bf 100644 --- a/test/config_info.cpp +++ b/test/config_info.cpp @@ -87,9 +87,9 @@ void print_byte_order(const char* what, T /* t */ ) template void print_sign(const char* what, T t) { - t = -1; + t = static_cast(-1); // cast suppresses warnings for(unsigned i = 0; i < indent; ++i) std::cout.put(' '); - std::cout << "Type " << what << " is " << ((t < 0) ? "signed" : "unsigned") << std::endl; + std::cout << "Type " << what << " is " << ((t > 0) ? "unsigned" : "signed") << std::endl; } #define PRINT_SIGN(T) print_sign(#T, T())