[gsubgpos] No logic-change minor rewrite

This commit is contained in:
Behdad Esfahbod 2022-11-23 21:36:43 -07:00
parent c15efdec49
commit 42681bdb55
1 changed files with 4 additions and 2 deletions

View File

@ -537,7 +537,8 @@ struct hb_ot_apply_context_t :
assert (num_items > 0);
/* The alternate condition below is faster at string boundaries,
* but produces subpar "unsafe-to-concat" values. */
while (idx + 1/*num_items*/ < end)
unsigned stop = end - 1/*num_items*/;
while (idx < stop)
{
idx++;
hb_glyph_info_t &info = c->buffer->info[idx];
@ -572,7 +573,8 @@ struct hb_ot_apply_context_t :
assert (num_items > 0);
/* The alternate condition below is faster at string boundaries,
* but produces subpar "unsafe-to-concat" values. */
while (idx > 0/*num_items - 1*/)
unsigned stop = 1 - 1/*num_items*/;
while (idx > stop)
{
idx--;
hb_glyph_info_t &info = c->buffer->out_info[idx];