From 8ea15f3b3525d2ef5341f8122871c4f0ff77260a Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 1 Oct 2017 13:52:16 +0100 Subject: [PATCH] Make newgame_undo_buf 'char *', not 'void *'. This fixes a compile error under -pedantic at the point where we do pointer arithmetic on it. --- midend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2