summaryrefslogtreecommitdiffstats
path: root/src/xplist.c
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-02-15 17:15:29 +0100
committerGravatar Jonathan Beck2009-02-15 17:15:29 +0100
commitbb3097cb2266b55719b955c93d09a0e2d6f8eccb (patch)
tree478a6dd7b31b1640d79bc645052fc9843cc74ca1 /src/xplist.c
parent8e9eb83c2a8cd3b6a6d1943043f1d3b674e82de4 (diff)
downloadlibplist-bb3097cb2266b55719b955c93d09a0e2d6f8eccb.tar.gz
libplist-bb3097cb2266b55719b955c93d09a0e2d6f8eccb.tar.bz2
Add more regression test and fix Integer and Real type handling.
Diffstat (limited to 'src/xplist.c')
-rw-r--r--src/xplist.c4
1 files changed, 2 insertions, 2 deletions
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: