diff --git a/src/color.cpp b/src/color.cpp index 0a5857f4d..990997a33 100644 --- a/src/color.cpp +++ b/src/color.cpp @@ -96,7 +96,7 @@ static unsigned char convert_color(const unsigned char rgb[3], const uint32_t *c long r = rgb[0], g = rgb[1], b = rgb[2]; unsigned long best_distance = static_cast(-1); unsigned char best_index = static_cast(-1); - for (unsigned char idx = 0; idx < color_count; idx++) { + for (size_t idx = 0; idx < color_count; idx++) { uint32_t color = colors[idx]; long test_r = (color >> 16) & 0xFF, test_g = (color >> 8) & 0xFF, test_b = (color >> 0) & 0xFF;