diff finch/gntplugin.c @ 26282:ea6b3aa222f1

merge of '96cf043274a971d5a2b9e01ef85fb60ca2a4bcd1' and 'd70375c084af2336e7fc6646fb778120b05de9a8'
author Paul Aurich <paul@darkrain42.org>
date Mon, 23 Mar 2009 03:06:36 +0000
parents b23211876f47
children f5f08111da52
line wrap: on
line diff
--- a/finch/gntplugin.c	Mon Mar 23 02:10:44 2009 +0000
+++ b/finch/gntplugin.c	Mon Mar 23 03:06:36 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);