Fix possible loss of data warning in SteelSeriesApexTZoneController.cpp
This commit is contained in:
parent
52a7412918
commit
6e66c6ff5e
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ void SteelSeriesApexTZoneController::SetColor(std::vector<RGBColor> colors, uint
|
|||
buf[0x01] = 0x0B;
|
||||
for(size_t i = 0; i < colors.size(); i++)
|
||||
{
|
||||
uint8_t index = i * 3;
|
||||
uint8_t index = (uint8_t)(i * 3);
|
||||
|
||||
buf[index + 3] = RGBGetRValue(colors[i]);;
|
||||
buf[index + 4] = RGBGetGValue(colors[i]);;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue