fix permissive casting.

This commit is contained in:
Lee Thomason 2016-07-17 22:53:48 -07:00
parent 5bf60e9dc6
commit c9445466de
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ int main( int argc, const char ** argv )
XMLTest( "Programmatic DOM", 2, doc->FirstChildElement()->LastChildElement( "sub" )->IntAttribute( "attrib" ) ); XMLTest( "Programmatic DOM", 2, doc->FirstChildElement()->LastChildElement( "sub" )->IntAttribute( "attrib" ) );
XMLTest( "Programmatic DOM", "& Text!", XMLTest( "Programmatic DOM", "& Text!",
doc->FirstChildElement()->LastChildElement( "sub" )->FirstChild()->ToText()->Value() ); doc->FirstChildElement()->LastChildElement( "sub" )->FirstChild()->ToText()->Value() );
XMLTest("User data", 2, (int)comment->GetUserData()); XMLTest("User data", (void*)2 == comment->GetUserData(), true, false);
// And now deletion: // And now deletion:
element->DeleteChild( sub[2] ); element->DeleteChild( sub[2] );