change type to UChar32 to fix IsValidCodepoint

This commit is contained in:
Shree Devi Kumar 2017-09-16 14:10:34 +05:30
parent e62e8f5f80
commit a404c9cdb3

View File

@ -217,7 +217,7 @@ bool IsOCREquivalent(char32 ch1, char32 ch2) {
bool IsValidCodepoint(const char32 ch) {
// In the range [0, 0xD800) or [0xE000, 0x10FFFF]
return (static_cast<uinT32>(ch) < 0xD800) || (ch >= 0xE000 && ch <= 0x10FFFF);
return (static_cast<UChar32>(ch) < 0xD800) || (ch >= 0xE000 && ch <= 0x10FFFF);
}
bool IsWhitespace(const char32 ch) {