From c5f1e7ce6eee3619d331095203560ac95d99da40 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Fri, 14 Oct 2016 10:33:02 +0300 Subject: [PATCH] Avoid cast to signed integer type --- tinyxml2.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index e82482e..a7c2b1c 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -2192,8 +2192,7 @@ XMLPrinter::XMLPrinter( FILE* file, bool compact, int depth ) : } for( int i=0; i(entityValue) && entityValue < ENTITY_RANGE ); + TIXMLASSERT( ((unsigned char)entityValue) < ENTITY_RANGE ); _entityFlag[ (unsigned char)entityValue ] = true; } _restrictedEntityFlag[(unsigned char)'&'] = true;