From 976eeb8e025e2b7601a91e661d6e9a88bf8afbd2 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 12 Mar 2016 23:28:12 -0800 Subject: [PATCH] [GX] Minor --- src/hb-ot-layout-common-private.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;