From 209b78a3ecce9ab4013b8f865c9d165dab9f0f81 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 7 Jul 2020 09:20:59 +0530 Subject: [PATCH] Silence a code scanning warning --- kitty/freetype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/freetype.c b/kitty/freetype.c index 9e9588fae..7d6c47363 100644 --- a/kitty/freetype.c +++ b/kitty/freetype.c @@ -497,7 +497,7 @@ static inline bool render_color_bitmap(Face *self, int glyph_id, ProcessedBitmap *ans, unsigned int cell_width, unsigned int cell_height, unsigned int num_cells, unsigned int baseline) { (void)baseline; unsigned short best = 0, diff = USHRT_MAX; - for (short i = 0; i < self->face->num_fixed_sizes; i++) { + for (short i = 0; i < (unsigned short)self->face->num_fixed_sizes; i++) { unsigned short w = self->face->available_sizes[i].width; unsigned short d = w > (unsigned short)cell_width ? w - (unsigned short)cell_width : (unsigned short)cell_width - w; if (d < diff) {