[subset/cff] Micro-optimize

This commit is contained in:
Behdad Esfahbod committed 2023-06-04 17:24:38 -06:00
1 parent 126d144196
commit e077ca893e
1 file changed
+6 -4
+6 -4
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