Explorar o código

fix a clang warning

Lee Thomason %!s(int64=11) %!d(string=hai) anos
pai
achega
7334f9efab
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      tinyxml2.cpp

+ 3 - 3
tinyxml2.cpp

@@ -1967,9 +1967,9 @@ XMLPrinter::XMLPrinter( FILE* file, bool compact, int depth ) :
             _entityFlag[ (int)entities[i].value ] = true;
         }
     }
-    _restrictedEntityFlag['&'] = true;
-    _restrictedEntityFlag['<'] = true;
-    _restrictedEntityFlag['>'] = true;	// not required, but consistency is nice
+    _restrictedEntityFlag[(int)'&'] = true;
+    _restrictedEntityFlag[(int)'<'] = true;
+    _restrictedEntityFlag[(int)'>'] = true;	// not required, but consistency is nice
     _buffer.Push( 0 );
 }