Guard 'isNumberChar()' from char outside ucs4-range

This commit is contained in:
Kornel Benko 2022-05-29 14:08:36 +02:00
parent 82af8778f1
commit 5f5a43eb9e

View File

@ -191,6 +191,9 @@ bool isDigitASCII(char_type c)
bool isNumberChar(char_type c)
{
if (c > ucs4_max)
// outside the UCS4 range
return false;
return ucs4_to_qchar(c).isNumber();
}