This commit is contained in:
Juhani Krekelä 2019-07-10 21:21:46 +03:00
parent 55fc6932e2
commit 05b4f87597
1 changed files with 1 additions and 1 deletions

View File

@ -531,7 +531,7 @@ bool check_utf8(const unsigned char *data, size_t data_length, bool newline_allo
}
// Reject non-characters
if (codepoint & 0xffff == 0xfffe || codepoint & 0xffff == 0xffff) {
if ((codepoint & 0xffff) == 0xfffe || (codepoint & 0xffff) == 0xffff) {
// Plane end non-characters
return false;
} else if (0xfdd0 <= codepoint && codepoint <= 0xfdef) {