From 024eee101495f70da0c1b27fd0e29ee18acdbfd3 Mon Sep 17 00:00:00 2001 From: Jerome Benoit Date: Sun, 7 Oct 2018 11:55:22 +0200 Subject: [PATCH] fix a signed integer issue. Signed-off-by: Jerome Benoit --- lib/othello.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/othello.c b/lib/othello.c index 6c03f1d..72066a0 100644 --- a/lib/othello.c +++ b/lib/othello.c @@ -281,7 +281,7 @@ unsigned int valid_shot(int y, int x, unsigned int current_player, unsigned int return nb_pawns_reversed; } -static void add_shots_list_cell(int y, int x, unsigned int type, struct shots_list_s* shots_list) { +static void add_shots_list_cell(unsigned int y, unsigned int x, unsigned int type, struct shots_list_s* shots_list) { struct shots_list_s* list_cell = (struct shots_list_s*)malloc(sizeof(struct shots_list_s)); if (!list_cell) { exit(EXIT_FAILURE); -- 2.34.1