mirror of https://github.com/AxioDL/tinyxml2.git
fix compiler warning
This commit is contained in:
parent
7334f9efab
commit
ebb0c8f904
|
@ -1967,6 +1967,8 @@ XMLPrinter::XMLPrinter( FILE* file, bool compact, int depth ) :
|
||||||
_entityFlag[ (int)entities[i].value ] = true;
|
_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;
|
_restrictedEntityFlag[(int)'<'] = true;
|
||||||
_restrictedEntityFlag[(int)'>'] = true; // not required, but consistency is nice
|
_restrictedEntityFlag[(int)'>'] = true; // not required, but consistency is nice
|
||||||
|
|
Loading…
Reference in New Issue