From 4696624ad9987b0eebcf5c84dafdb204b886f28e Mon Sep 17 00:00:00 2001 From: Rod Sheeter Date: Wed, 14 Feb 2018 15:30:49 -0800 Subject: [PATCH] [subset] maxp wrong int type, note to use copy_writable_or_fail --- src/hb-ot-maxp-table.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hb-ot-maxp-table.hh b/src/hb-ot-maxp-table.hh index 34eb9ae84..0ad123ab9 100644 --- a/src/hb-ot-maxp-table.hh +++ b/src/hb-ot-maxp-table.hh @@ -48,7 +48,7 @@ struct maxp return numGlyphs; } - inline void set_num_glyphs (uint16_t count) + inline void set_num_glyphs (unsigned int count) { numGlyphs.set (count); } @@ -64,6 +64,7 @@ struct maxp inline bool subset (hb_subset_plan_t *plan) const { hb_blob_t *maxp_blob = OT::Sanitizer().sanitize (hb_face_reference_table (plan->source, HB_OT_TAG_maxp)); + // TODO hb_blob_copy_writable_or_fail hb_blob_t *maxp_prime_blob = hb_blob_create_sub_blob (maxp_blob, 0, -1); hb_blob_destroy (maxp_blob);