commit | ebb0c8f904521bb82ec29e92e1191a4a5708032c | [log] [tgz] |
---|---|---|
author | Lee Thomason <lthomaso@adobe.com> | Wed Dec 17 10:50:32 2014 -0800 |
committer | Lee Thomason <lthomaso@adobe.com> | Wed Dec 17 10:50:32 2014 -0800 |
tree | 9345be1bf99918afe49f4b1f2e3a3d84433896b6 | |
parent | 7334f9efab1bb85472ce7c7756f8d1d0aa5c3f67 [diff] [blame] |
fix compiler warning
diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 0289a13..2d3a1f7 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp
@@ -1967,6 +1967,8 @@ _entityFlag[ (int)entities[i].value ] = true; } } + // Clang doesn't like indexing arrays with 'char' + // so cast to int. (Looks strange.) _restrictedEntityFlag[(int)'&'] = true; _restrictedEntityFlag[(int)'<'] = true; _restrictedEntityFlag[(int)'>'] = true; // not required, but consistency is nice