From 4f0256c13fa541dc320975d988d370ba91691fdf Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Sat, 27 Jan 2024 10:47:10 -0500 Subject: [PATCH] * src/sfnt/ttgpos.c (tt_gpos_get_glyph_class): Fix warning C4018. --- src/sfnt/ttgpos.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sfnt/ttgpos.c b/src/sfnt/ttgpos.c index 8c7ca172b..c5dd043d6 100644 --- a/src/sfnt/ttgpos.c +++ b/src/sfnt/ttgpos.c @@ -280,9 +280,9 @@ { case CLASS_DEF_TABLE_FORMAT_ARRAY: { - FT_UShort start_glyph_id = FT_PEEK_USHORT( class_def_table + 2 ); - FT_UShort glyph_count = FT_PEEK_USHORT( class_def_table + 4 ); - FT_Byte *class_value_array = class_def_table + 6; + FT_UInt start_glyph_id = FT_PEEK_USHORT( class_def_table + 2 ); + FT_UInt glyph_count = FT_PEEK_USHORT( class_def_table + 4 ); + FT_Byte *class_value_array = class_def_table + 6; if ( glyph >= start_glyph_id &&