Help to finish my problem - Check50 - Pset4 - Filter Less

I am coding the sepia filter, it is already working, but it does not pass the check50. I think of according to the check50 report, that there is some problem of precision in the calculations, but I can't find the error. What can it be ?

float sepiaRed   = round(0.393 * image[h][w].rgbtRed + 0.769 * image[h][w].rgbtGreen + 0.189 * image[h][w].rgbtBlue);
float sepiaGreen = round(0.349 * image[h][w].rgbtRed + 0.686 * image[h][w].rgbtGreen + 0.168 * image[h][w].rgbtBlue);
float sepiaBlue  = round(0.272 * image[h][w].rgbtRed + 0.534 * image[h][w].rgbtGreen + 0.131 * image[h][w].rgbtBlue);

Thank You

int sepiaRed = round((0.393 * image[h][w].rgbtRed) + (0.769 * image[h][w].rgbtGreen) + (0.189 * image[h][w].rgbtBlue));
int sepiaGreen = round((0.349 * image[h][w].rgbtRed) + (0.686 * image[h][w].rgbtGreen) + (0.168 * image[h][w].rgbtBlue));
int sepiaBlue = round((0.272 * image[h][w].rgbtRed) + (0.534 * image[h][w].rgbtGreen) + (0.131 * image[h][w].rgbtBlue));

From the problem description page,

Be sure to round any floating-point numbers to the nearest integer when assigning them to a pixel value

Also beneficial to know about operator precedence in C

• I change my code, but i can't success the check50. Look it. :) Apr 24 '21 at 17:10
• @CodeMaker Hmm.. looks like this part is fine, perhaps problem with loops
– C--
Apr 24 '21 at 17:45
• Yes, Thank You for help. Apr 24 '21 at 17:59