[syllabic] Fix signed/unsigned comparision errors

pull/2823/head
Behdad Esfahbod 4 years ago
parent e3d4c29727
commit 5c73c9082b
  1. 6
      src/hb-ot-shape-complex-syllabic.cc
  2. 4
      src/hb-ot-shape-complex-syllabic.hh

@ -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 ();
}

@ -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);

Loading…
Cancel
Save