add 0x10000 properly
This commit is contained in:
parent
8eab55d173
commit
b3cca6a026
|
@ -210,7 +210,7 @@ static PHYSFS_uint32 utf16codepoint(const PHYSFS_uint16 **_str)
|
|||
else
|
||||
{
|
||||
src++; /* eat the other surrogate. */
|
||||
cp = (0x10000 | ((cp - 0xD800) << 10) | (pair - 0xDC00));
|
||||
cp = 0x10000 + (((cp - 0xD800) << 10) | (pair - 0xDC00));
|
||||
} /* else */
|
||||
} /* else if */
|
||||
|
||||
|
|
Loading…
Reference in New Issue