chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db313b3
)
Make newgame_undo_buf 'char *', not 'void *'.
author
Simon Tatham
<anakin@pobox.com>
Sun, 1 Oct 2017 12:52:16 +0000
(13:52 +0100)
committer
Simon Tatham
<anakin@pobox.com>
Sun, 1 Oct 2017 12:52:16 +0000
(13:52 +0100)
This fixes a compile error under -pedantic at the point where we do
pointer arithmetic on it.
midend.c
patch
|
blob
|
history
diff --git
a/midend.c
b/midend.c
index 2f09bb528c7a9a1fb38e4262f21867b5f782326d..93334f6807bd60164aaf4b0f2e5d62f78544ff46 100644
(file)
--- a/
midend.c
+++ b/
midend.c
@@
-63,7
+63,7
@@
struct midend {
int nstates, statesize, statepos;
struct midend_state_entry *states;
-
void
*newgame_undo_buf;
+
char
*newgame_undo_buf;
int newgame_undo_len, newgame_undo_size;
game_params *params, *curparams;