From 1350d2a470287d43f475b6f0004994e5d4df61ca Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 23 Feb 2026 18:44:50 -0300 Subject: [PATCH] [cmap] Fix CodeXL warning Fixes https://github.com/harfbuzz/harfbuzz/issues/5753 --- src/hb-ot-cmap-table.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-cmap-table.hh b/src/hb-ot-cmap-table.hh index 50d26e50b..73d37c444 100644 --- a/src/hb-ot-cmap-table.hh +++ b/src/hb-ot-cmap-table.hh @@ -1658,7 +1658,7 @@ struct EncodingRecord CmapSubtable *cmapsubtable = c->push (); unsigned origin_length = c->length (); cmapsubtable->serialize (c, it, format, plan, &(base+subtable)); - if (c->length () - origin_length > 0 && !c->in_error()) *objidx = c->pop_pack (); + if (c->length () > origin_length && !c->in_error()) *objidx = c->pop_pack (); else c->pop_discard (); }