[subset] Fix integer underflow in ContextFormat2.

This commit is contained in:
Garret Rieger 2020-09-09 12:38:34 -07:00
parent ac3f859a30
commit 8c3d4de796
2 changed files with 1 additions and 1 deletions

View File

@ -1859,7 +1859,7 @@ struct ContextFormat2
const hb_map_t *lookup_map = c->table_tag == HB_OT_TAG_GSUB ? c->plan->gsub_lookups : c->plan->gpos_lookups;
bool ret = true;
unsigned non_zero_index = 0, index = 0;
int non_zero_index = 0, index = 0;
for (const hb_pair_t<unsigned, const OffsetTo<RuleSet>&> _ : + hb_enumerate (ruleSet)
| hb_filter (klass_map, hb_first))
{