summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-02-12 04:38:57 +0000
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-02-12 04:38:57 +0000
commitcb99aa5065886035d762dbf7640dcc44c791fb2d (patch)
tree04faccd340cf4366c220504a995133d6a5fd6e33 /src
parent284f56f5887030c78a6a66285b48484dc112bdd5 (diff)
Fix compilation warning for toolsets where wchar_t == char.
git-svn-id: https://pugixml.googlecode.com/svn/trunk@983 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src')
-rw-r--r--src/pugixml.cpp3
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)