From: Jerome Benoit Date: Sun, 7 Oct 2018 09:55:22 +0000 (+0200) Subject: fix a signed integer issue. X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=024eee101495f70da0c1b27fd0e29ee18acdbfd3;p=Project_algorithmic_C.git fix a signed integer issue. Signed-off-by: Jerome Benoit --- 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);