degesch: fix a GCC compiler warning

This commit is contained in:
Přemysl Eric Janouch 2021-06-15 07:11:35 +02:00
parent b4dd0052ff
commit 61c52d793c
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -2109,7 +2109,7 @@ filter_color_cube_for_acceptable_nick_colors (size_t *len)
// This is a pure function and we don't use threads, static storage is fine // This is a pure function and we don't use threads, static storage is fine
static int table[6 * 6 * 6]; static int table[6 * 6 * 6];
size_t len_counter = 0; size_t len_counter = 0;
for (int x = 0; x < N_ELEMENTS (table); x++) for (int x = 0; x < (int) N_ELEMENTS (table); x++)
{ {
int r = x / 36; int r = x / 36;
int g = (x / 6) % 6; int g = (x / 6) % 6;