OTF_Glyph *gend = gstring->glyphs + (direction > 0 ? gstring->used : -1);
int i, j;
- for (i = j = 0; i < count && g != gend; g += direction)
+ for (i = j = 0; i < count && g != gend; j++, g += direction)
if (! IGNORED_GLYPH (g, flag)
&& g->glyph_id != ids[i++])
return -1;
OTF_Glyph *gend = gstring->glyphs + (direction > 0 ? gstring->used : -1);
int i, j;
- for (i = j = 0; i < count && g != gend; g += direction)
+ for (i = j = 0; i < count && g != gend; j++, g += direction)
if (! IGNORED_GLYPH (g, flag)
&& get_class_def (class_def, g->glyph_id) != classes[i++])
return -1;
OTF_Glyph *gend = gstring->glyphs + (direction > 0 ? gstring->used : - 1);
int i, j;
- for (i = j = 0; i < count && g != gend; g += direction, j++)
+ for (i = j = 0; i < count && g != gend; j++, g += direction)
if (! IGNORED_GLYPH (g, flag)
&& get_coverage_index (coverages + i++, g->glyph_id) < 0)
return -1;