diff -r ad90b00d3bc7 -r 5d52410f6ea8 finch/gntplugin.c --- a/finch/gntplugin.c Wed Apr 01 04:24:11 2009 +0000 +++ b/finch/gntplugin.c Wed Apr 01 04:25:37 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);