Fix compilation warning for toolsets where wchar_t == char.
git-svn-id: https://pugixml.googlecode.com/svn/trunk@983 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
284f56f588
commit
cb99aa5065
@ -2679,7 +2679,8 @@ PUGI__NS_BEGIN
|
|||||||
#ifdef PUGIXML_WCHAR_MODE
|
#ifdef PUGIXML_WCHAR_MODE
|
||||||
static char_t* parse_skip_bom(char_t* s)
|
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
|
#else
|
||||||
static char_t* parse_skip_bom(char_t* s)
|
static char_t* parse_skip_bom(char_t* s)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user