mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
fix warning
This commit is contained in:
parent
26a70170fb
commit
f6f7f55e92
@ -327,7 +327,7 @@ int LedDeviceWS2812b::write(const std::vector<ColorRgb> &ledValues)
|
||||
#endif
|
||||
|
||||
|
||||
for(size_t i=0; i<_ledCount; i++)
|
||||
for(size_t i=0; i<(size_t)_ledCount; i++)
|
||||
{
|
||||
// Create bits necessary to represent one color triplet (in GRB, not RGB, order)
|
||||
colorBits = ((unsigned int)ledValues[i].red << 8) | ((unsigned int)ledValues[i].green << 16) | ledValues[i].blue;
|
||||
|
Loading…
Reference in New Issue
Block a user