From d5b682e8b3cd4531e93ef137db8eb36d395fb084 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Mon, 29 Jul 2024 23:35:19 -0500 Subject: [PATCH] Fix warnings in MSIVigorGK30Controller.cpp --- Controllers/MSIVigorController/MSIVigorGK30Controller.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Controllers/MSIVigorController/MSIVigorGK30Controller.cpp b/Controllers/MSIVigorController/MSIVigorGK30Controller.cpp index 5823b0e8..a3daba57 100644 --- a/Controllers/MSIVigorController/MSIVigorGK30Controller.cpp +++ b/Controllers/MSIVigorController/MSIVigorGK30Controller.cpp @@ -87,9 +87,9 @@ unsigned char MSIVigorGK30Controller::GetColourIndex(unsigned char red, unsigned | 0x06 white | \*-----------------------------------------------------*/ unsigned int divisor = GetLargestColour( red, green, blue); - unsigned int r = round( red / divisor ); - unsigned int g = round( green / divisor ); - unsigned int b = round( blue / divisor ); + unsigned int r = (unsigned int)round( red / divisor ); + unsigned int g = (unsigned int)round( green / divisor ); + unsigned int b = (unsigned int)round( blue / divisor ); unsigned char idx = argb_colour_index_data[r][g][b]; return idx; }