mirror of https://github.com/AxioDL/tinyxml2.git
fix sleazy cast causing compilation issue
This commit is contained in:
parent
d11cd169e6
commit
d0b19df88c
|
@ -772,7 +772,7 @@ int main( int /*argc*/, const char ** /*argv*/ )
|
|||
|
||||
XMLHandle docH( doc );
|
||||
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" );
|
||||
|
||||
ele = docH.FirstChildElement( "none" ).FirstChildElement( "element" ).ToElement();
|
||||
XMLTest( "Handle, dne, const", 0, (int)ele );
|
||||
XMLTest( "Handle, dne, const", false, ele != 0 );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue