From d64db2e05ba40f96d414e414f93024e69108d93b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophyl=20Hoguet?= Date: Sun, 6 Mar 2022 19:30:29 +0100 Subject: [PATCH] minor fix related max changes --- game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game.c b/game.c index 89ef33e..3c9c329 100644 --- a/game.c +++ b/game.c @@ -196,7 +196,7 @@ void update_flags_lightbulb(game g, uint i, uint j) { // F_ERROR on the initial lightbulb // tab[] = { i, j, i, j, i, j, i, j} int tab[] = {-1, 0, 1, 0, 0, -1, 0, 1}; - for (int gap_position = 1; gap_position < max(game_nb_cols(g), game_nb_rows(g)); gap_position++) { + for (uint gap_position = 1; gap_position < max(game_nb_cols(g), game_nb_rows(g)); gap_position++) { // index_tab => pair = i // index_tab => odd = j for (uint index_tab = 0; index_tab < sizeof(tab) / sizeof(tab[0]); index_tab += 2) {