[subset] Compute set max using previous()
This commit is contained in:
parent
00cb8c629d
commit
8bfeea4828
|
@ -442,10 +442,9 @@ _create_old_gid_to_new_gid_map (const hb_face_t *face,
|
||||||
| hb_sink (reverse_glyph_map)
|
| hb_sink (reverse_glyph_map)
|
||||||
;
|
;
|
||||||
|
|
||||||
unsigned max_glyph =
|
hb_codepoint_t max_glyph = HB_SET_VALUE_INVALID;
|
||||||
+ hb_iter (all_gids_to_retain)
|
hb_set_previous (all_gids_to_retain, &max_glyph);
|
||||||
| hb_reduce (hb_max, 0u)
|
|
||||||
;
|
|
||||||
*num_glyphs = max_glyph + 1;
|
*num_glyphs = max_glyph + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue