diff --git a/src/hb-ot-layout-common-private.hh b/src/hb-ot-layout-common-private.hh index 52d213cd4..3154cfe7a 100644 --- a/src/hb-ot-layout-common-private.hh +++ b/src/hb-ot-layout-common-private.hh @@ -1243,8 +1243,7 @@ struct VariationAxis { inline float evaluate (int *coords, unsigned int coord_len) const { - unsigned int i = axisIndex; - int coord = i < coord_len ? coords[i] : 0; + int coord = axisIndex < coord_len ? coords[axisIndex] : 0; int start = startCoord, peak = peakCoord, end = endCoord; //if (coord == 0) return 0;