summaryrefslogtreecommitdiff
path: root/finch/gntroomlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'finch/gntroomlist.c')
-rw-r--r--finch/gntroomlist.c2
1 files changed, 1 insertions, 1 deletions
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);