summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Aurich <darkrain42@pidgin.im>2009-03-20 06:01:48 +0000
committerPaul Aurich <darkrain42@pidgin.im>2009-03-20 06:01:48 +0000
commit1ad58c4310989106070dc0ed5a065ac14cccc069 (patch)
treeebaedc662ea843670b9145b05771c61f1bde4a8f
parentee50f8513335b8e3dc28f4e593c55f9a8f87d765 (diff)
downloadpidgin-1ad58c4310989106070dc0ed5a065ac14cccc069.tar.gz
Fix Finch warnings when building on 64-bit
Fixes #8425.
-rw-r--r--finch/gntlog.c2
-rw-r--r--finch/gntplugin.c4
-rw-r--r--finch/gntroomlist.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/finch/gntlog.c b/finch/gntlog.c
index 5593f73c87..9f6083a545 100644
--- a/finch/gntlog.c
+++ b/finch/gntlog.c
@@ -66,7 +66,7 @@ static guint log_viewer_hash(gconstpointer data)
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)
diff --git a/finch/gntplugin.c b/finch/gntplugin.c
index 4c1127cbc2..7dd8e58cab 100644
--- a/finch/gntplugin.c
+++ b/finch/gntplugin.c
@@ -484,10 +484,10 @@ process_pref_frame(PurplePluginPrefFrame *frame)
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);
diff --git a/finch/gntroomlist.c b/finch/gntroomlist.c
index bbaa3e7dad..89479a4310 100644
--- a/finch/gntroomlist.c
+++ b/finch/gntroomlist.c
@@ -190,7 +190,7 @@ roomlist_selection_changed(GntWidget *widget, gpointer old, gpointer current, gp
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);