shithub: puzzles

Download patch

ref: 69ab4b2205cd41188c9aa5f5878f876c739c4800
parent: f781937d0dd435fc24e13c117d38e530b4351d06
author: Simon Tatham <anakin@pobox.com>
date: Sat Nov 29 05:24:05 EST 2014

Fix a GINT_TO_POINTER that was back to front.

Spotted by clang, which I just tried building this codebase with out
of curiosity.

--- a/gtk.c
+++ b/gtk.c
@@ -2264,7 +2264,7 @@
 		gtk_radio_menu_item_group(GTK_RADIO_MENU_ITEM(menuitem));
             gtk_container_add(GTK_CONTAINER(submenu), menuitem);
             gtk_object_set_data(GTK_OBJECT(menuitem), "user-data",
-				GPOINTER_TO_INT(CFG_SETTINGS));
+				GINT_TO_POINTER(CFG_SETTINGS));
             gtk_signal_connect(GTK_OBJECT(menuitem), "activate",
                                GTK_SIGNAL_FUNC(menu_config_event), fe);
             gtk_widget_show(menuitem);