Skip to content

Commit a404c9c

Browse files
committed
change type to UChar32 to fix IsValidCodepoint
1 parent e62e8f5 commit a404c9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

training/normstrngs.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ bool IsOCREquivalent(char32 ch1, char32 ch2) {
217217

218218
bool IsValidCodepoint(const char32 ch) {
219219
// In the range [0, 0xD800) or [0xE000, 0x10FFFF]
220-
return (static_cast<uinT32>(ch) < 0xD800) || (ch >= 0xE000 && ch <= 0x10FFFF);
220+
return (static_cast<UChar32>(ch) < 0xD800) || (ch >= 0xE000 && ch <= 0x10FFFF);
221221
}
222222

223223
bool IsWhitespace(const char32 ch) {

0 commit comments

Comments
 (0)