From: handa Date: Wed, 18 Nov 2009 07:54:22 +0000 (+0000) Subject: Fix previous change. X-Git-Tag: REL-0-9-11~33 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=db319f07bea3a2f01930c59bf8251924ce141de4;p=m17n%2Flibotf.git Fix previous change. --- diff --git a/src/otfdrive.c b/src/otfdrive.c index 44cca1c..72d2434 100644 --- a/src/otfdrive.c +++ b/src/otfdrive.c @@ -278,7 +278,7 @@ match_ids (OTF_GlyphString *gstring, int gidx, int flag, 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; @@ -316,7 +316,7 @@ match_classes (OTF_ClassDef *class_def, OTF_GlyphString *gstring, int gidx, 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; @@ -359,7 +359,7 @@ match_coverages (OTF_GlyphString *gstring, int gidx, int flag, int count, 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;