mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
Fix dumb typo in surrogate pair check.
This commit is contained in:
parent
1dd3915a4c
commit
6d007749d4
@ -25,7 +25,7 @@ public:
|
||||
const uint32_t u = UTF16_Swap<is_little>(c_[index_++]);
|
||||
|
||||
// Surrogate pair. UTF-16 is so simple. We assume it's valid.
|
||||
if ((u & 0xD800) == 0xD800) {
|
||||
if ((u & 0xF800) == 0xD800) {
|
||||
return 0x10000 + (((u & 0x3FF) << 10) | (UTF16_Swap<is_little>(c_[index_++]) & 0x3FF));
|
||||
}
|
||||
return u;
|
||||
|
Loading…
Reference in New Issue
Block a user