shithub: puzzles

Download patch

ref: 8ea15f3b3525d2ef5341f8122871c4f0ff77260a
parent: db313b3948d27244dd7c34c2609c66d6204d8931
author: Simon Tatham <anakin@pobox.com>
date: Sun Oct 1 09:52:16 EDT 2017

Make newgame_undo_buf 'char *', not 'void *'.

This fixes a compile error under -pedantic at the point where we do
pointer arithmetic on it.

--- a/midend.c
+++ b/midend.c
@@ -63,7 +63,7 @@
     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;