minor change

This commit is contained in:
Michiharu Ariza 2019-02-07 10:27:43 -08:00
parent 9328354a83
commit 214d0b024b
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ hb_plan_subset_cff_fdselect (const hb_subset_plan_t *plan,
hb_set_t *set = hb_set_create (); hb_set_t *set = hb_set_create ();
if (set == &Null (hb_set_t)) if (set == &Null (hb_set_t))
return false; return false;
hb_codepoint_t prev_fd = CFF_UNDEF_CODE; hb_codepoint_t prev_fd = 0;
for (hb_codepoint_t i = 0; i < subset_num_glyphs; i++) for (hb_codepoint_t i = 0; i < subset_num_glyphs; i++)
{ {
hb_codepoint_t glyph; hb_codepoint_t glyph;
@ -75,7 +75,7 @@ hb_plan_subset_cff_fdselect (const hb_subset_plan_t *plan,
{ {
/* for a missing glyph, use the same fd as the previous /* for a missing glyph, use the same fd as the previous
* as an attempt to minimize the number of ranges */ * as an attempt to minimize the number of ranges */
fd = (prev_fd == CFF_UNDEF_CODE)? 0: prev_fd; fd = prev_fd;
} }
else else
{ {