repositories
/
Project_algorithmic_C.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa739af
)
fix a signed integer issue.
author
Jerome Benoit
<jerome.benoit@sap.com>
Sun, 7 Oct 2018 09:55:22 +0000
(11:55 +0200)
committer
Jerome Benoit
<jerome.benoit@sap.com>
Sun, 7 Oct 2018 09:55:22 +0000
(11:55 +0200)
Signed-off-by: Jerome Benoit <jerome.benoit@sap.com>
lib/othello.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/othello.c
b/lib/othello.c
index 6c03f1dacaa7acbc57c3d55ad51df6e866257b6f..72066a0fc46cee8c17507606610f6dd38cb5e53a 100644
(file)
--- 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);