minor fix related max changes

This commit is contained in:
Théophyl Hoguet committed 2022-03-06 19:30:29 +01:00
1 parent 54aea82417
commit d64db2e05b
1 file changed
+1 -1
+1 -1
View File
@@ -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) {