fix a signed integer issue.
[Project_algorithmic_C.git] / lib / othello.c
index 6c03f1dacaa7acbc57c3d55ad51df6e866257b6f..72066a0fc46cee8c17507606610f6dd38cb5e53a 100644 (file)
@@ -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);