diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index 33bf03c13..0353c1c50 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc @@ -1060,9 +1060,8 @@ hb_ot_layout_lookups_substitute_closure (hb_face_t *face, for (unsigned int i = 0; i < gsub.get_lookup_count (); i++) gsub.get_lookup (i).closure (&c, i); } - iteration_count++; - } while (iteration_count <= HB_CLOSURE_MAX_STAGES - && glyphs_length != glyphs->get_population ()); + } while (iteration_count++ <= HB_CLOSURE_MAX_STAGES && + glyphs_length != glyphs->get_population ()); } /*