From cb99aa5065886035d762dbf7640dcc44c791fb2d Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Wed, 12 Feb 2014 04:38:57 +0000 Subject: Fix compilation warning for toolsets where wchar_t == char. git-svn-id: https://pugixml.googlecode.com/svn/trunk@983 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(bom)) ? s + 1 : s; } #else static char_t* parse_skip_bom(char_t* s) -- cgit v1.2.3