From c83127973df986766faa036f5d7c27ff13bf2f4b Mon Sep 17 00:00:00 2001 From: Lee Thomason Date: Mon, 16 Jul 2012 12:44:41 -0700 Subject: [PATCH] fix some compiler warnings, and fragile code, in the test output --- xmltest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmltest.cpp b/xmltest.cpp index eceb860..8e5e01f 100644 --- a/xmltest.cpp +++ b/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(expected), static_cast(found) ); if ( pass ) ++gPass;