[five-or-more] Fix comparison of pointer with integer



commit b5774e5d617aba23c458b0b0a6790a336dfb4fd2
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun Jan 25 15:30:06 2015 -0600

    Fix comparison of pointer with integer
    
    This isn't portable

 src/five-or-more.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/five-or-more.c b/src/five-or-more.c
index 040df0c..6408a82 100644
--- a/src/five-or-more.c
+++ b/src/five-or-more.c
@@ -1294,7 +1294,7 @@ size_callback (GtkWidget * widget, gpointer data)
   GtkWidget *size_radio, *content_area, *label;
 
   game_size = g_settings_get_int (settings, KEY_SIZE);
-  if (pref_dialog_done && game_size != data && !restart_game_dialog) {
+  if (pref_dialog_done && game_size != GPOINTER_TO_INT (data) && !restart_game_dialog) {
     GtkDialogFlags flags = GTK_DIALOG_DESTROY_WITH_PARENT;
 
     restart_game_dialog = gtk_message_dialog_new (GTK_WINDOW (pref_dialog),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]