From 64d0f0893812fa1cb2746071d8b021560969526d Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 1 Apr 2019 16:50:28 -0700 Subject: [PATCH] [cmap] Minor --- src/hb-ot-cmap-table.hh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/hb-ot-cmap-table.hh b/src/hb-ot-cmap-table.hh index 53b914a17..add5325a4 100644 --- a/src/hb-ot-cmap-table.hh +++ b/src/hb-ot-cmap-table.hh @@ -495,7 +495,7 @@ struct CmapSubtableLongSegmented TRACE_SERIALIZE (this); if (unlikely (!c->extend_min (*this))) return_trace (false); if (unlikely (!groups.serialize (c, group_data.as_array ()))) return_trace (false); - return true; + return_trace (true); } protected: @@ -520,13 +520,14 @@ struct CmapSubtableFormat12 : CmapSubtableLongSegmented bool serialize (hb_serialize_context_t *c, const hb_sorted_vector_t &groups) { - if (unlikely (!c->extend_min (*this))) return false; + TRACE_SERIALIZE (this); + if (unlikely (!c->extend_min (*this))) return_trace (false); this->format = 12; this->reserved = 0; this->length = get_sub_table_size (groups); - return CmapSubtableLongSegmented::serialize (c, groups); + return_trace (CmapSubtableLongSegmented::serialize (c, groups)); } static size_t get_sub_table_size (const hb_sorted_vector_t &groups)