[glyf] Minor write loop more idiomatically

This commit is contained in:
Behdad Esfahbod 2022-11-22 10:45:49 -07:00
parent 16ec9dcc1b
commit 1758ee6646
1 changed files with 2 additions and 2 deletions

View File

@ -132,8 +132,8 @@ struct SimpleGlyph
if (unlikely (p + 1 > end)) return false;
unsigned int repeat_count = *p++;
unsigned stop = hb_min (i + repeat_count, count);
for (; i < stop;)
points_.arrayZ[i++].flag = flag;
for (; i < stop; i++)
points_.arrayZ[i].flag = flag;
}
}
return true;