فهرست منبع

fix a clang warning

Lee Thomason 11 سال پیش
والد
کامیت
7334f9efab
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  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 );
 }