Przeglądaj źródła

minor warning fix

Lee Thomason (grinliz) 14 lat temu
rodzic
commit
8a0975dfa7
1 zmienionych plików z 1 dodań i 1 usunięć
  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;