mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-04 06:11:07 -04:00
Fix possible loss of data warning in RGBController_Nollie.cpp
This commit is contained in:
@@ -201,7 +201,7 @@ void RGBController_Nollie::DeviceUpdateLEDs()
|
||||
for(std::size_t i = 0; i < ChSort.size(); i++)
|
||||
{
|
||||
int* ptr = std::find(channel_index, channel_index + 32, ChSort[i]);
|
||||
int zone_idx = ptr - channel_index;
|
||||
int zone_idx = (int)(ptr - channel_index);
|
||||
controller->SetChannelLEDs(ChSort[i], zones[zone_idx].colors, zones[zone_idx].leds_count);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user