Pārlūkot izejas kodu

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

Lee Thomason 13 gadi atpakaļ
vecāks
revīzija
c83127973d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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;