From 94943d9fddc76193d12c0c38d339dd6fd2236fa6 Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Sun, 24 Oct 2021 01:04:47 -0700 Subject: [PATCH] Mend a NEW warning in src/fill.c --- src/fill.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fill.c b/src/fill.c index ce506915f..c2e68e6d7 100644 --- a/src/fill.c +++ b/src/fill.c @@ -507,8 +507,8 @@ void draw_radial_gradient(SDL_Surface * canvas, int x_left, int y_top, int x_rig /* Only alter the pixels within the flood itself */ if (touched[(yy * canvas->w) + xx]) { /* Determine the distance from the click point */ - xd = fabs(xx - x); - yd = fabs(yy - y); + xd = fabs((float) (xx - x)); + yd = fabs((float) (yy - y)); dist = sqrt(xd * xd + yd * yd); if (dist < rad) { ratio = (dist / rad);