mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[utf] Fix ASCII
This commit is contained in:
parent
327546e633
commit
ce81c74298
1 changed files with 2 additions and 2 deletions
|
@ -410,7 +410,7 @@ struct hb_ascii_t
|
|||
hb_codepoint_t replacement HB_UNUSED)
|
||||
{
|
||||
*unicode = *text++;
|
||||
if (*unicode >= 0x100)
|
||||
if (*unicode >= 0x0080u)
|
||||
*unicode = replacement;
|
||||
return text;
|
||||
}
|
||||
|
@ -422,7 +422,7 @@ struct hb_ascii_t
|
|||
hb_codepoint_t replacement)
|
||||
{
|
||||
*unicode = *--text;
|
||||
if (*unicode >= 0x0080)
|
||||
if (*unicode >= 0x0080u)
|
||||
*unicode = replacement;
|
||||
return text;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue