Whoops
This commit is contained in:
parent
55fc6932e2
commit
05b4f87597
|
@ -531,7 +531,7 @@ bool check_utf8(const unsigned char *data, size_t data_length, bool newline_allo
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reject non-characters
|
// Reject non-characters
|
||||||
if (codepoint & 0xffff == 0xfffe || codepoint & 0xffff == 0xffff) {
|
if ((codepoint & 0xffff) == 0xfffe || (codepoint & 0xffff) == 0xffff) {
|
||||||
// Plane end non-characters
|
// Plane end non-characters
|
||||||
return false;
|
return false;
|
||||||
} else if (0xfdd0 <= codepoint && codepoint <= 0xfdef) {
|
} else if (0xfdd0 <= codepoint && codepoint <= 0xfdef) {
|
||||||
|
|
Loading…
Reference in New Issue