Fix possible loss of data warning in NZXTHue2Controller.cpp
This commit is contained in:
parent
656d3a40c8
commit
09bdffab54
1 changed files with 2 additions and 2 deletions
|
|
@ -298,7 +298,7 @@ void NZXTHue2Controller::SetChannelEffect
|
|||
\*-----------------------------------------------------*/
|
||||
for (std::size_t idx = 0; idx < num_colors; idx++)
|
||||
{
|
||||
int pixel_idx = idx * 3;
|
||||
int pixel_idx = (int)idx * 3;
|
||||
RGBColor color = colors[idx];
|
||||
color_data[pixel_idx + 0x00] = RGBGetGValue(color);
|
||||
color_data[pixel_idx + 0x01] = RGBGetRValue(color);
|
||||
|
|
@ -325,7 +325,7 @@ void NZXTHue2Controller::SetChannelLEDs
|
|||
\*-----------------------------------------------------*/
|
||||
for (std::size_t idx = 0; idx < num_colors; idx++)
|
||||
{
|
||||
int pixel_idx = idx * 3;
|
||||
int pixel_idx = (int)idx * 3;
|
||||
RGBColor color = colors[idx];
|
||||
color_data[pixel_idx + 0x00] = RGBGetGValue(color);
|
||||
color_data[pixel_idx + 0x01] = RGBGetRValue(color);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue