add missing bit to UTF-16 surrogate pair conversion

This commit is contained in:
alfadur 2021-09-06 01:12:22 +03:00 committed by Ryan C. Gordon
parent 23690f316d
commit 8eab55d173
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ static PHYSFS_uint32 utf16codepoint(const PHYSFS_uint16 **_str)
else
{
src++; /* eat the other surrogate. */
cp = (((cp - 0xD800) << 10) | (pair - 0xDC00));
cp = (0x10000 | ((cp - 0xD800) << 10) | (pair - 0xDC00));
} /* else */
} /* else if */