Fix infinite loop bug in ShallowEqual. Fix a warning with a re-interpret cast. Up version to 1.0.4

This commit is contained in:
Lee Thomason (grinliz)
2012-07-01 21:22:53 -07:00
parent a3efec0449
commit 390e978da1
5 changed files with 31 additions and 7 deletions

View File

@@ -1242,6 +1242,8 @@ bool XMLElement::ShallowEqual( const XMLNode* compare ) const
if ( !XMLUtil::StringEqual( a->Value(), b->Value() ) ) {
return false;
}
a = a->Next();
b = b->Next();
}
if ( a || b ) {
// different count