Explorar o código

minor warning fix

Lee Thomason (grinliz) %!s(int64=14) %!d(string=hai) anos
pai
achega
8a0975dfa7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tinyxml2.cpp

+ 1 - 1
tinyxml2.cpp

@@ -1576,7 +1576,7 @@ void XMLPrinter::PrintString( const char* p, bool restricted )
 				// Check for entities. If one is found, flush
 				// the stream up until the entity, write the 
 				// entity, and keep looking.
-				if ( flag[*q] ) {
+				if ( flag[(unsigned)(*q)] ) {
 					while ( p < q ) {
 						Print( "%c", *p );
 						++p;