Fix compiler warning due to implicit cast

feature/sdl2_threaded
Joel Bodenmann 2021-08-10 15:41:26 +02:00
parent 13d360b17f
commit 47d9826a0a
1 changed files with 1 additions and 1 deletions

View File

@ -565,7 +565,7 @@ static gCoord getPixels(gImage *img, gCoord x) {
} else if (b[1] == 2) { // Delta x, y } else if (b[1] == 2) { // Delta x, y
// There are always at least 2 bytes in an RLE code // There are always at least 2 bytes in an RLE code
if (gfileRead(img->f, &b, 2) != 2) 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->rlerun = b[0] + (gU16)b[1] * img->width;
priv->rlecode = 0; // Who knows what color this should really be priv->rlecode = 0; // Who knows what color this should really be
priv->bmpflags |= BMP_RLE_ENC; priv->bmpflags |= BMP_RLE_ENC;