shithub: puzzles

Download patch

ref: f806528a309d62f836d39ad9cc703e7592c9f68b
parent: 2fe0667f519a825e6c028b4365312a144b343d62
author: Simon Tatham <anakin@pobox.com>
date: Sat Nov 29 05:39:00 EST 2014

Remove another erroneous GINT_TO_POINTER.

This one shouldn't have been there at all - it had a pointer argument
already, not an int.

--- a/gtk.c
+++ b/gtk.c
@@ -1336,8 +1336,7 @@
 	titles += strlen(titles)+1;
 	i++;
     }
-    gtk_object_set_data(GTK_OBJECT(window), "user-data",
-			GINT_TO_POINTER(&i));
+    gtk_object_set_data(GTK_OBJECT(window), "user-data", &i);
     gtk_signal_connect(GTK_OBJECT(window), "destroy",
                        GTK_SIGNAL_FUNC(window_destroy), NULL);
     gtk_window_set_modal(GTK_WINDOW(window), TRUE);