[subset/cff] Micro-optimize

This commit is contained in:
Behdad Esfahbod 2023-06-04 16:23:36 -06:00
parent 126d144196
commit e077ca893e

View file

@ -420,9 +420,10 @@ struct cff_subset_plan {
for (glyph = 1; glyph < num_glyphs; glyph++)
{
hb_codepoint_t old_glyph;
if (glyph == it->first)
auto &_ = it[0];
if (glyph == _.first)
{
old_glyph = it->second;
old_glyph = _.second;
it++;
}
else
@ -500,9 +501,10 @@ struct cff_subset_plan {
for (glyph = 1; glyph < num_glyphs; glyph++)
{
hb_codepoint_t old_glyph;
if (glyph == it->first)
auto &_ = it[0];
if (glyph == _.first)
{
old_glyph = it->second;
old_glyph = _.second;
it++;
}
else