[utf] Fix ASCII
This commit is contained in:
parent
327546e633
commit
ce81c74298
|
@ -410,7 +410,7 @@ struct hb_ascii_t
|
||||||
hb_codepoint_t replacement HB_UNUSED)
|
hb_codepoint_t replacement HB_UNUSED)
|
||||||
{
|
{
|
||||||
*unicode = *text++;
|
*unicode = *text++;
|
||||||
if (*unicode >= 0x100)
|
if (*unicode >= 0x0080u)
|
||||||
*unicode = replacement;
|
*unicode = replacement;
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
|
@ -422,7 +422,7 @@ struct hb_ascii_t
|
||||||
hb_codepoint_t replacement)
|
hb_codepoint_t replacement)
|
||||||
{
|
{
|
||||||
*unicode = *--text;
|
*unicode = *--text;
|
||||||
if (*unicode >= 0x0080)
|
if (*unicode >= 0x0080u)
|
||||||
*unicode = replacement;
|
*unicode = replacement;
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue