Fix possible loss of data warning in RoccatKoneAimoController.cpp
This commit is contained in:
parent
b88107664a
commit
52a7412918
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ void RoccatKoneAimoController::SetChannelColors(ROCCAT_KONE_AIMO_CHANNEL channel
|
||||||
for(unsigned char i = 0; i < num_colors; i++)
|
for(unsigned char i = 0; i < num_colors; i++)
|
||||||
{
|
{
|
||||||
std::size_t color = channel + i;
|
std::size_t color = channel + i;
|
||||||
int usb_idx = 0x02 + (color * 4);
|
int usb_idx = (int)(0x02 + (color * 4));
|
||||||
|
|
||||||
usb_colors_buf[usb_idx + R_OFFSET] = RGBGetRValue(colors[i]);
|
usb_colors_buf[usb_idx + R_OFFSET] = RGBGetRValue(colors[i]);
|
||||||
usb_colors_buf[usb_idx + G_OFFSET] = RGBGetGValue(colors[i]);
|
usb_colors_buf[usb_idx + G_OFFSET] = RGBGetGValue(colors[i]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue