Fix warnings in Windows build

This commit is contained in:
Adam Honse 2025-07-05 01:35:47 -05:00
parent e5b3c12814
commit a762d00aa8
11 changed files with 49 additions and 43 deletions

View file

@ -133,9 +133,13 @@ void HyperXAlloyOriginsCoreController::SetLEDsDirect(std::vector<RGBColor> color
| transfer the colors to the buffer. Max 94 colors to avoid buffer overflow. |
\*---------------------------------------------------------------------------*/
if(colors.size() > 94)
{
total_colors = 94;
}
else
total_colors = colors.size();
{
total_colors = (unsigned int)colors.size();
}
for(unsigned int color_idx = 0; color_idx < total_colors; color_idx++)
{