From e99d75ea9c4fe1f64d7f8408093741a682ed5243 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 9 May 2018 15:28:30 -0700 Subject: [PATCH] Fix warning --- src/hb-ot-cmap-table.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-cmap-table.hh b/src/hb-ot-cmap-table.hh index 196b2cb75..67d20f1f6 100644 --- a/src/hb-ot-cmap-table.hh +++ b/src/hb-ot-cmap-table.hh @@ -191,7 +191,7 @@ struct CmapSubtableFormat4 } if (!segment - || cp != segment->end_code + 1) + || cp != segment->end_code + 1u) { segment = segments->push (); segment->start_code.set (cp); @@ -199,7 +199,7 @@ struct CmapSubtableFormat4 segment->use_delta = true; } else { segment->end_code.set (cp); - if (last_gid + 1 != new_gid) + if (last_gid + 1u != new_gid) // gid's are not consecutive in this segment so delta // cannot be used. segment->use_delta = false;