fix warning

This commit is contained in:
redPanther 2016-08-16 18:14:36 +02:00 committed by GitHub
parent 26a70170fb
commit f6f7f55e92

View File

@ -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;