[epiphany] Fix gcc warnings by using GINT_TO_POINTER/GPOINTER_TO_INT



commit 5f97a28f42941bda9b9a29d792da65f8395e651e
Author: Benjamin Otte <otte gnome org>
Date:   Sun Jul 19 20:30:02 2009 +0200

    Fix gcc warnings by using GINT_TO_POINTER/GPOINTER_TO_INT

 src/ephy-history-window.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c
index ea196c1..f41285a 100644
--- a/src/ephy-history-window.c
+++ b/src/ephy-history-window.c
@@ -1149,7 +1149,7 @@ convert_cell_data_func (GtkTreeViewColumn *column,
 			GtkTreeIter *iter,
 			gpointer user_data)
 {
-	int col_id = (int) user_data;
+	int col_id = GPOINTER_TO_INT (user_data);
 	int value;
 	time_t time;
 	char *friendly;
@@ -1176,7 +1176,7 @@ parse_time_into_date (GtkTreeViewColumn *column,
 	renderer = GTK_CELL_RENDERER (renderers_list->data);
 	gtk_tree_view_column_set_cell_data_func (column, renderer,
 						 (GtkTreeCellDataFunc) convert_cell_data_func,
-						 (gpointer) column_id,
+						 GINT_TO_POINTER (column_id),
 						 NULL);
 	g_list_free (renderers_list);
 }



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