From 47d9826a0a2d9889962083660f2be2d9604d5261 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Tue, 10 Aug 2021 15:41:26 +0200 Subject: [PATCH] Fix compiler warning due to implicit cast --- src/gdisp/gdisp_image_bmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gdisp/gdisp_image_bmp.c b/src/gdisp/gdisp_image_bmp.c index 270cba26..fee0a46a 100644 --- a/src/gdisp/gdisp_image_bmp.c +++ b/src/gdisp/gdisp_image_bmp.c @@ -565,7 +565,7 @@ static gCoord getPixels(gImage *img, gCoord x) { } else if (b[1] == 2) { // Delta x, y // There are always at least 2 bytes in an RLE code if (gfileRead(img->f, &b, 2) != 2) - return GDISP_IMAGE_ERR_BADDATA; + return (gCoord)GDISP_IMAGE_ERR_BADDATA; priv->rlerun = b[0] + (gU16)b[1] * img->width; priv->rlecode = 0; // Who knows what color this should really be priv->bmpflags |= BMP_RLE_ENC;