From 8910ffc600992674bff6573a706572c2819d7e73 Mon Sep 17 00:00:00 2001 From: jdolan Date: Sun, 7 Jul 2013 10:14:48 -0400 Subject: [PATCH] Use intptr_t again when casting gpointer to integers. --- contrib/prtview/LoadPortalFileDialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/prtview/LoadPortalFileDialog.cpp b/contrib/prtview/LoadPortalFileDialog.cpp index bd0439e3..4b25ce50 100644 --- a/contrib/prtview/LoadPortalFileDialog.cpp +++ b/contrib/prtview/LoadPortalFileDialog.cpp @@ -37,7 +37,7 @@ static void dialog_button_callback( GtkWidget *widget, gpointer data ){ ret = (int*)g_object_get_data( G_OBJECT( parent ), "ret" ); *loop = 0; - *ret = (int)data; + *ret = (intptr_t)data; } static gint dialog_delete_callback( GtkWidget *widget, GdkEvent* event, gpointer data ){ @@ -60,7 +60,7 @@ static void file_sel_callback( GtkWidget *widget, gpointer data ){ filename = (char**)g_object_get_data( G_OBJECT( parent ), "filename" ); *loop = 0; - if ( (int)data == IDOK ) { + if ( (intptr_t)data == IDOK ) { *filename = g_strdup( gtk_file_selection_get_filename( GTK_FILE_SELECTION( parent ) ) ); } }