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: