diff options
-rw-r--r-- | src/pugixml.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 1893125..59712ae 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -2679,7 +2679,8 @@ PUGI__NS_BEGIN #ifdef PUGIXML_WCHAR_MODE static char_t* parse_skip_bom(char_t* s) { - return (s[0] == 0xfeff) ? s + 1 : s; + unsigned int bom = 0xfeff; + return (s[0] == static_cast<wchar_t>(bom)) ? s + 1 : s; } #else static char_t* parse_skip_bom(char_t* s) |