From f6f7f55e92bb1e5e17bb519747d0acebecbb625a Mon Sep 17 00:00:00 2001 From: redPanther Date: Tue, 16 Aug 2016 18:14:36 +0200 Subject: [PATCH] fix warning --- libsrc/leddevice/LedDeviceWS2812b.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;