Fix possible loss of data warning in RGBController_NZXTKraken.cpp
This commit is contained in:
parent
d3747a2465
commit
643c81e9db
1 changed files with 2 additions and 2 deletions
|
|
@ -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]
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue