aboutsummaryrefslogtreecommitdiff
path: root/midend.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2017-10-01 13:52:16 +0100
committerSimon Tatham <anakin@pobox.com>2017-10-01 13:52:16 +0100
commit8ea15f3b3525d2ef5341f8122871c4f0ff77260a (patch)
tree29b5a8ddf4748f0e733de9cf9b27c075be7069fc /midend.c
parentdb313b3948d27244dd7c34c2609c66d6204d8931 (diff)
downloadpuzzles-8ea15f3b3525d2ef5341f8122871c4f0ff77260a.zip
puzzles-8ea15f3b3525d2ef5341f8122871c4f0ff77260a.tar.gz
puzzles-8ea15f3b3525d2ef5341f8122871c4f0ff77260a.tar.bz2
puzzles-8ea15f3b3525d2ef5341f8122871c4f0ff77260a.tar.xz
Make newgame_undo_buf 'char *', not 'void *'.
This fixes a compile error under -pedantic at the point where we do pointer arithmetic on it.
Diffstat (limited to 'midend.c')
-rw-r--r--midend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/midend.c b/midend.c
index 2f09bb5..93334f6 100644
--- 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;