Explorar o código

fix some compiler warnings, and fragile code, in the test output

Lee Thomason %!s(int64=13) %!d(string=hai) anos
pai
achega
c83127973d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      xmltest.cpp

+ 1 - 1
xmltest.cpp

@@ -49,7 +49,7 @@ template< class T > bool XMLTest( const char* testString, T expected, T found, b
 	if ( !echo )
 		printf (" %s\n", testString);
 	else
-		printf (" %s [%d][%d]\n", testString, expected, found);
+		printf (" %s [%d][%d]\n", testString, static_cast<int>(expected), static_cast<int>(found) );
 
 	if ( pass )
 		++gPass;