From ce81c7429810ad3902c37e50016ca54b9bae6f91 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 24 Oct 2018 12:34:03 -0700 Subject: [PATCH] [utf] Fix ASCII --- src/hb-utf.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-utf.hh b/src/hb-utf.hh index f78d5499..52bc8b76 100644 --- a/src/hb-utf.hh +++ b/src/hb-utf.hh @@ -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; } -- GitLab