Fix slicing of int64_t
This commit is contained in:
11
xmltest.cpp
11
xmltest.cpp
@@ -82,8 +82,15 @@ template< class T > bool XMLTest( const char* testString, T expected, T found, b
|
|||||||
|
|
||||||
if ( !echo )
|
if ( !echo )
|
||||||
printf (" %s\n", testString);
|
printf (" %s\n", testString);
|
||||||
else
|
else {
|
||||||
printf (" %s [%d][%d]\n", testString, static_cast<int>(expected), static_cast<int>(found) );
|
char expectedAsString[64];
|
||||||
|
XMLUtil::ToStr(expected, expectedAsString, sizeof(expectedAsString));
|
||||||
|
|
||||||
|
char foundAsString[64];
|
||||||
|
XMLUtil::ToStr(found, foundAsString, sizeof(foundAsString));
|
||||||
|
|
||||||
|
printf (" %s [%s][%s]\n", testString, expectedAsString, foundAsString );
|
||||||
|
}
|
||||||
|
|
||||||
if ( pass )
|
if ( pass )
|
||||||
++gPass;
|
++gPass;
|
||||||
|
|||||||
Reference in New Issue
Block a user