fix sleazy cast causing compilation issue

This commit is contained in:
Lee Thomason 2012-04-12 08:41:37 -07:00
parent d11cd169e6
commit d0b19df88c
1 changed files with 2 additions and 2 deletions

View File

@ -772,7 +772,7 @@ int main( int /*argc*/, const char ** /*argv*/ )
XMLHandle docH( doc ); XMLHandle docH( doc );
ele = docH.FirstChildElement( "none" ).FirstChildElement( "element" ).ToElement(); ele = docH.FirstChildElement( "none" ).FirstChildElement( "element" ).ToElement();
XMLTest( "Handle, dne, mutable", 0, (int)ele ); XMLTest( "Handle, dne, mutable", false, ele != 0 );
} }
{ {
@ -785,7 +785,7 @@ int main( int /*argc*/, const char ** /*argv*/ )
XMLTest( "Handle, success, const", ele->Value(), "sub" ); XMLTest( "Handle, success, const", ele->Value(), "sub" );
ele = docH.FirstChildElement( "none" ).FirstChildElement( "element" ).ToElement(); ele = docH.FirstChildElement( "none" ).FirstChildElement( "element" ).ToElement();
XMLTest( "Handle, dne, const", 0, (int)ele ); XMLTest( "Handle, dne, const", false, ele != 0 );
} }