[glyf] Minor write loop more idiomatically
This commit is contained in:
parent
16ec9dcc1b
commit
1758ee6646
|
@ -132,8 +132,8 @@ struct SimpleGlyph
|
||||||
if (unlikely (p + 1 > end)) return false;
|
if (unlikely (p + 1 > end)) return false;
|
||||||
unsigned int repeat_count = *p++;
|
unsigned int repeat_count = *p++;
|
||||||
unsigned stop = hb_min (i + repeat_count, count);
|
unsigned stop = hb_min (i + repeat_count, count);
|
||||||
for (; i < stop;)
|
for (; i < stop; i++)
|
||||||
points_.arrayZ[i++].flag = flag;
|
points_.arrayZ[i].flag = flag;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue