diff --git a/src/hb-ot-var-common.hh b/src/hb-ot-var-common.hh index d903ac277..9c8b5c9a3 100644 --- a/src/hb-ot-var-common.hh +++ b/src/hb-ot-var-common.hh @@ -165,8 +165,12 @@ struct TupleVariationHeader #ifndef HB_OPTIMIZE_SIZE #if HB_FAST_NUM_ACCESS if (skip) + { while (i + 4 < coord_count && * (HBUINT64LE *) &peak_tuple[i] == 0) i += 4; + while (i + 1 < coord_count && peak_tuple[i].to_int () == 0) + i += 1; + } #endif #endif