From bb3097cb2266b55719b955c93d09a0e2d6f8eccb Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Sun, 15 Feb 2009 17:15:29 +0100 Subject: Add more regression test and fix Integer and Real type handling. --- src/xplist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/xplist.c') diff --git a/src/xplist.c b/src/xplist.c index e281b4f..c0849b6 100644 --- a/src/xplist.c +++ b/src/xplist.c @@ -152,12 +152,12 @@ static void node_to_xml(GNode * node, gpointer xml_struct) case PLIST_UINT: tag = XPLIST_INT; - val = g_strdup_printf("%lu", (long unsigned int) node_data->intval); + val = g_strdup_printf("%llu", node_data->intval); break; case PLIST_REAL: tag = XPLIST_REAL; - val = g_strdup_printf("%Lf", (long double) node_data->realval); + val = g_strdup_printf("%f", node_data->realval); break; case PLIST_STRING: -- cgit v1.1-32-gdbae