pidgin: d70375c0: Fix Finch warnings when building on 64-b...

paul at darkrain42.org paul at darkrain42.org
Sun Mar 22 23:11:14 EDT 2009


-----------------------------------------------------------------
Revision: d70375c084af2336e7fc6646fb778120b05de9a8
Ancestor: b6a5e4ff2031056de1ab02b445572a506ebe7780
Author: paul at darkrain42.org
Date: 2009-03-20T06:01:48
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/d70375c084af2336e7fc6646fb778120b05de9a8

Modified files:
        finch/gntlog.c finch/gntplugin.c finch/gntroomlist.c

ChangeLog: 

Fix Finch warnings when building on 64-bit

Fixes #8425.

-------------- next part --------------
============================================================
--- finch/gntlog.c	09bb7e96f11f41c9311b7b587d5e016e2c31bafd
+++ finch/gntlog.c	a2349a031e3419313a2004a95d4dfa5722c4c4f0
@@ -66,7 +66,7 @@ static guint log_viewer_hash(gconstpoint
 			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)
============================================================
--- finch/gntplugin.c	de6a2c7d1b48b79e31995896ff37ba983b42c991
+++ finch/gntplugin.c	cacace6ab691ae845474951267f19121765a0ca7
@@ -484,10 +484,10 @@ process_pref_frame(PurplePluginPrefFrame
 				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);
============================================================
--- finch/gntroomlist.c	1c686ba3a994a1885115ca43621d246a25b3dc51
+++ finch/gntroomlist.c	abd1996bff3318759c2f15d8a68ea77a9b34fdae
@@ -190,7 +190,7 @@ roomlist_selection_changed(GntWidget *wi
 				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);


More information about the Commits mailing list