From 5c73c9082b32a5dd955c1c0f0a4e08e85304c2e2 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 18 Jan 2021 12:47:25 -0700 Subject: [PATCH] [syllabic] Fix signed/unsigned comparision errors --- src/hb-ot-shape-complex-syllabic.cc | 6 +++--- src/hb-ot-shape-complex-syllabic.hh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/hb-ot-shape-complex-syllabic.cc b/src/hb-ot-shape-complex-syllabic.cc index 054526301..9f8c790bc 100644 --- a/src/hb-ot-shape-complex-syllabic.cc +++ b/src/hb-ot-shape-complex-syllabic.cc @@ -32,8 +32,8 @@ void hb_syllabic_insert_dotted_circles (hb_font_t *font, hb_buffer_t *buffer, - int broken_syllable_type, - int dottedcircle_category, + unsigned int broken_syllable_type, + unsigned int dottedcircle_category, int repha_category) { if (unlikely (buffer->flags & HB_BUFFER_FLAG_DO_NOT_INSERT_DOTTED_CIRCLE)) @@ -84,7 +84,7 @@ hb_syllabic_insert_dotted_circles (hb_font_t *font, { while (buffer->idx < buffer->len && buffer->successful && last_syllable == buffer->cur().syllable() && - buffer->cur().complex_var_u8_category() == repha_category) + buffer->cur().complex_var_u8_category() == (unsigned) repha_category) buffer->next_glyph (); } diff --git a/src/hb-ot-shape-complex-syllabic.hh b/src/hb-ot-shape-complex-syllabic.hh index d29637cf7..c80b8fee1 100644 --- a/src/hb-ot-shape-complex-syllabic.hh +++ b/src/hb-ot-shape-complex-syllabic.hh @@ -33,8 +33,8 @@ HB_INTERNAL void hb_syllabic_insert_dotted_circles (hb_font_t *font, hb_buffer_t *buffer, - int broken_syllable_type, - int dottedcircle_category, + unsigned int broken_syllable_type, + unsigned int dottedcircle_category, int repha_category = -1);