changeset 26199:b23211876f47

Fix Finch warnings when building on 64-bit Fixes #8425.
author Paul Aurich <paul@darkrain42.org>
date Fri, 20 Mar 2009 06:01:48 +0000
parents e1b91b7b5f69
children ea6b3aa222f1 31f0fece7502 e4a060a1e3de 7027cc42e56c 2d781c58a8a2
files finch/gntlog.c finch/gntplugin.c finch/gntroomlist.c
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/finch/gntlog.c	Fri Mar 20 05:46:04 2009 +0000
+++ b/finch/gntlog.c	Fri Mar 20 06:01:48 2009 +0000
@@ -66,7 +66,7 @@
 			g_str_hash(purple_account_get_username(viewer->account));
 	}
 
-	return (guint)viewer;
+	return g_direct_hash(viewer);
 }
 
 static gboolean log_viewer_equal(gconstpointer y, gconstpointer z)
--- a/finch/gntplugin.c	Fri Mar 20 05:46:04 2009 +0000
+++ b/finch/gntplugin.c	Fri Mar 20 06:01:48 2009 +0000
@@ -484,10 +484,10 @@
 				char *value = NULL;
 				switch(type) {
 					case PURPLE_PREF_BOOLEAN:
-						value = g_strdup_printf("%d", (int)list->next->data);
+						value = g_strdup_printf("%d", GPOINTER_TO_INT(list->next->data));
 						break;
 					case PURPLE_PREF_INT:
-						value = g_strdup_printf("%d", (int)list->next->data);
+						value = g_strdup_printf("%d", GPOINTER_TO_INT(list->next->data));
 						break;
 					case PURPLE_PREF_STRING:
 						value = g_strdup(list->next->data);
--- a/finch/gntroomlist.c	Fri Mar 20 05:46:04 2009 +0000
+++ b/finch/gntroomlist.c	Fri Mar 20 06:01:48 2009 +0000
@@ -190,7 +190,7 @@
 				label = g_strdup(iter->data ? "True" : "False");
 				break;
 			case PURPLE_ROOMLIST_FIELD_INT:
-				label = g_strdup_printf("%d", (int)iter->data);
+				label = g_strdup_printf("%d", GPOINTER_TO_INT(iter->data));
 				break;
 			case PURPLE_ROOMLIST_FIELD_STRING:
 				label = g_strdup(iter->data);