Skip to content

Commit

Permalink
tinxml2 rev. 4b173cbcf1
Browse files Browse the repository at this point in the history
  • Loading branch information
michaellukashov committed Aug 30, 2017
1 parent 9986f4d commit 590588a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libs/tinyxml2/tinyxml2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2380,8 +2380,9 @@ XMLPrinter::XMLPrinter( FILE* file, bool compact, int depth ) :
}
for( int i=0; i<NUM_ENTITIES; ++i ) {
const char entityValue = entities[i].value;
TIXMLASSERT( ((unsigned char)entityValue) < ENTITY_RANGE );
_entityFlag[ (unsigned char)entityValue ] = true;
const unsigned char flagIndex = (unsigned char)entityValue;
TIXMLASSERT( flagIndex < ENTITY_RANGE );
_entityFlag[flagIndex] = true;
}
_restrictedEntityFlag[(unsigned char)'&'] = true;
_restrictedEntityFlag[(unsigned char)'<'] = true;
Expand Down

0 comments on commit 590588a

Please sign in to comment.