chiark / gitweb /
Make newgame_undo_buf 'char *', not 'void *'.
authorSimon Tatham <anakin@pobox.com>
Sun, 1 Oct 2017 12:52:16 +0000 (13:52 +0100)
committerSimon 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

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;