From db319f07bea3a2f01930c59bf8251924ce141de4 Mon Sep 17 00:00:00 2001 From: handa Date: Wed, 18 Nov 2009 07:54:22 +0000 Subject: [PATCH] Fix previous change. --- src/otfdrive.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 1.7.10.4