diff --git a/libsrc/leddevice/LedDeviceWS2812b.cpp b/libsrc/leddevice/LedDeviceWS2812b.cpp index a469c9a1..ca7b8ffa 100644 --- a/libsrc/leddevice/LedDeviceWS2812b.cpp +++ b/libsrc/leddevice/LedDeviceWS2812b.cpp @@ -327,7 +327,7 @@ int LedDeviceWS2812b::write(const std::vector &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;