Fix possible loss of data warning in LianLiUniHubSLInfinityController.cpp
This commit is contained in:
parent
848e96f64b
commit
a1cffba1bf
1 changed files with 2 additions and 2 deletions
|
|
@ -169,12 +169,12 @@ void LianLiUniHubSLInfinityController::SetChannelMode(unsigned char channel, con
|
|||
memset(fan_led_data, 0x00, sizeof(fan_led_data));
|
||||
|
||||
std::vector<RGBColor> colors = active_mode.colors;
|
||||
unsigned int num_colors = colors.size();
|
||||
unsigned int num_colors = (unsigned int)colors.size();
|
||||
|
||||
if(!colors.empty()) // Update led_data if there's colors
|
||||
{
|
||||
brightness = static_cast<float>(active_mode.brightness)/4;
|
||||
if (num_colors == 6)
|
||||
if(num_colors == 6)
|
||||
{
|
||||
for(unsigned int i = 0; i < 6; i++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue