[subset] Remove extra iteration

This commit is contained in:
Behdad Esfahbod 2019-05-16 13:05:58 -07:00
parent 6555f20958
commit 05bc5f96fb
1 changed files with 4 additions and 2 deletions

View File

@ -116,8 +116,9 @@ struct SingleSubstFormat1
glyph_map[(g + delta) & 0xFFFF]); }) glyph_map[(g + delta) & 0xFFFF]); })
; ;
bool ret = bool (it);
SingleSubst_serialize (c->serializer, it); SingleSubst_serialize (c->serializer, it);
return_trace (it.len ()); return_trace (ret);
} }
bool sanitize (hb_sanitize_context_t *c) const bool sanitize (hb_sanitize_context_t *c) const
@ -212,8 +213,9 @@ struct SingleSubstFormat2
{ return hb_pair (glyph_map[p.first], glyph_map[p.second]); }) { return hb_pair (glyph_map[p.first], glyph_map[p.second]); })
; ;
bool ret = bool (it);
SingleSubst_serialize (c->serializer, it); SingleSubst_serialize (c->serializer, it);
return_trace (it.len ()); return_trace (ret);
} }
bool sanitize (hb_sanitize_context_t *c) const bool sanitize (hb_sanitize_context_t *c) const