<URL: http://bugs.freeciv.org/Ticket/Display.html?id=37804 >

 This fixes compiler warning about incompatible cast (in 64bit system)


 - ML

diff -Nurd -X.diff_ignore freeciv/client/gui-gtk-2.0/editdlg.c freeciv/client/gui-gtk-2.0/editdlg.c
--- freeciv/client/gui-gtk-2.0/editdlg.c	2007-03-08 18:42:40.000000000 +0200
+++ freeciv/client/gui-gtk-2.0/editdlg.c	2007-03-09 03:19:13.000000000 +0200
@@ -113,7 +113,7 @@
   /* untoggle all the other buttons in the group toggle this one */
   for (i = 0 ; i < g_list_length(group); i++) {
     GtkWidget *button = (GtkWidget *)g_list_nth_data(group, i);
-    int id = (int)g_object_get_data(G_OBJECT(button), "sigid");
+    int id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(button), "sigid"));
 
     g_signal_handlers_block_by_func(button,
                                     G_CALLBACK(toggle_group_callback), data);
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to