[instancer] fix bots

This commit is contained in:
Qunxin Liu 2023-09-20 11:28:15 -07:00
parent 2d2818c096
commit b5f7ca1ab4
2 changed files with 3 additions and 3 deletions

View file

@ -2036,7 +2036,7 @@ struct item_variations_t
/* return directly if no optimization, maintain original VariationIndex so
* varidx_map would be empty */
if (!optimize) return encodings.in_error ();
if (!optimize) return !encodings.in_error ();
/* sort encoding_objs */
encoding_objs.qsort ();

View file

@ -146,8 +146,8 @@ struct index_map_subset_plan_t
hb_codepoint_t new_gid = _.first;
if (unlikely (new_gid >= map_count)) break;
unsigned v = output_map.arrayZ[new_gid];
unsigned *new_varidx;
uint32_t v = output_map.arrayZ[new_gid];
uint32_t *new_varidx;
if (!varidx_map.has (v, &new_varidx))
return false;