From 7334f9efab1bb85472ce7c7756f8d1d0aa5c3f67 Mon Sep 17 00:00:00 2001 From: Lee Thomason Date: Wed, 17 Dec 2014 10:43:48 -0800 Subject: [PATCH] fix a clang warning --- tinyxml2.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 0dc5cd4..0289a13 100755 --- a/tinyxml2.cpp +++ b/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 ); }