From e12dfebf581f1d3c0ba0e850e77714d19e4c4da5 Mon Sep 17 00:00:00 2001 From: kukemuna Date: Fri, 8 Mar 2024 13:28:59 +0200 Subject: [PATCH] automated commit by check50 [check50=True] --- helpers.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helpers.c b/helpers.c index c95d4a0..68c4390 100644 --- a/helpers.c +++ b/helpers.c @@ -109,9 +109,9 @@ void blur(int height, int width, RGBTRIPLE image[height][width]) count++; } } - image[i][j].rgbtRed = round(sumRed / count); - image[i][j].rgbtGreen = round(sumGreen / count); - image[i][j].rgbtBlue = round(sumBlue / count); + image[i][j].rgbtRed = round(sumRed / (float) count); + image[i][j].rgbtGreen = round(sumGreen / (float) count); + image[i][j].rgbtBlue = round(sumBlue / (float) count); } } return;