mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-04 22:24:12 -04:00
Fix possible loss of data warning in RGBController_NZXTKraken.cpp
This commit is contained in:
@@ -256,7 +256,7 @@ void RGBController_NZXTKraken::ResizeZone(int /*zone*/, int /*new_size*/)
|
||||
std::vector<std::vector<RGBColor>> RGBController_NZXTKraken::GetColors(int zone, const mode& channel_mode)
|
||||
{
|
||||
std::vector<std::vector<RGBColor>> result;
|
||||
int length = zone < 0 ? leds.size() : zones[zone].leds_count;
|
||||
int length = zone < 0 ? (int)leds.size() : (int)zones[zone].leds_count;
|
||||
|
||||
if(channel_mode.color_mode == MODE_COLORS_NONE)
|
||||
{
|
||||
@@ -313,7 +313,7 @@ void RGBController_NZXTKraken::UpdateChannel(NZXTKrakenChannel_t channel, int zo
|
||||
channel_mode.value,
|
||||
direction,
|
||||
speed,
|
||||
idx,
|
||||
(int)idx,
|
||||
update_colors[idx]
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user