From ef2cd4e8f0e24cf9e023fc10e8c61315e2734b63 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Fri, 4 Sep 2009 13:25:13 +0200 Subject: [PATCH] Convert Pidgin's int values to uints --- src/empathy-import-pidgin.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/empathy-import-pidgin.c b/src/empathy-import-pidgin.c index 23b1d84f..877eb26b 100644 --- a/src/empathy-import-pidgin.c +++ b/src/empathy-import-pidgin.c @@ -140,8 +140,11 @@ import_dialog_pidgin_parse_setting (EmpathyImportAccountData *data, else if (!tp_strdiff (type, "int")) { i = (gint) g_ascii_strtod (content, NULL); - value = tp_g_value_slice_new (G_TYPE_INT); - g_value_set_int (value, i); + /* FIXME: Pidgin uses signed int values whereas Telepathy usually + * uses unsigned int values. + */ + value = tp_g_value_slice_new (G_TYPE_UINT); + g_value_set_uint (value, (guint) i); } else if (!tp_strdiff (type, "string")) { -- 2.39.2