# HG changeset patch # User Paul Aurich # Date 1237528908 0 # Node ID b23211876f478a1c92e9c7b89e4d5792ac8eec0e # Parent e1b91b7b5f6907243b5270a2823727313694449b Fix Finch warnings when building on 64-bit Fixes #8425. diff -r e1b91b7b5f69 -r b23211876f47 finch/gntlog.c --- 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) diff -r e1b91b7b5f69 -r b23211876f47 finch/gntplugin.c --- 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); diff -r e1b91b7b5f69 -r b23211876f47 finch/gntroomlist.c --- 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);