X-Git-Url: https://git.piment-noir.org/?p=Project_algorithmic_C.git;a=blobdiff_plain;f=lib%2Fothello.c;fp=lib%2Fothello.c;h=72066a0fc46cee8c17507606610f6dd38cb5e53a;hp=6c03f1dacaa7acbc57c3d55ad51df6e866257b6f;hb=024eee101495f70da0c1b27fd0e29ee18acdbfd3;hpb=aa739af2efbd062790fb7b4690a87e3774efa974 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);