From 0593a95e28e08a130c87f23c527156ac1d46219b Mon Sep 17 00:00:00 2001 From: Michiharu Ariza Date: Thu, 21 Mar 2019 10:36:53 -0700 Subject: [PATCH] refix short count --- src/hb-ot-layout-common.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-layout-common.hh b/src/hb-ot-layout-common.hh index e7332faf0..23d5279a3 100644 --- a/src/hb-ot-layout-common.hh +++ b/src/hb-ot-layout-common.hh @@ -1763,7 +1763,7 @@ struct VarData unsigned int old = remap.to_old (i); if (unlikely (old >= src->itemCount)) return_trace (false); int16_t delta = get_item_delta (old, short_count - 1); - if (-128 <= delta && delta <= 127) goto found_short; + if (delta < -128 || 127 < delta) goto found_short; } found_short: