From 3ae4517a083d7228225e347e7065a3b87584a16e Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Thu, 4 May 2023 23:36:04 -0700 Subject: [PATCH] Mend compiler warning (don't cast ceil() to (int)) --- src/tuxpaint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index cd9cd4f8b..663f2c342 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -11458,8 +11458,8 @@ static SDL_Surface *thumbnail2(SDL_Surface * src, int max_x, int max_y, int keep xscale = (float)((float)src->w / (float)sx); } - new_x = (int)ceil((float)src->w / xscale); - new_y = (int)ceil((float)src->h / yscale); + new_x = ceil((float)src->w / xscale); + new_y = ceil((float)src->h / yscale); if (new_x > max_x) new_x = max_x;