diff --git a/src/plugins/splash/space-flares/plugin.c b/src/plugins/splash/space-flares/plugin.c index 5af99c11..1b28268f 100644 --- a/src/plugins/splash/space-flares/plugin.c +++ b/src/plugins/splash/space-flares/plugin.c @@ -759,7 +759,7 @@ star_bg_update (view_t *view, sprite_t *sprite, double time) x = star_bg->star_x[i]; y = star_bg->star_y[i]; uint32_t pixel_colour = star_bg_gradient_colour (x, y, width, height, true, time); - if (abs (((image_data[x + y * width] >> 16) & 0xff) - ((pixel_colour >> 16) & 0xff)) > 8) { + if (abs ((int)((image_data[x + y * width] >> 16) & 0xff) - (int)((pixel_colour >> 16) & 0xff)) > 8) { image_data[x + y * width] = pixel_colour; star_bg->star_refresh[i] = 1; }