From 3e80ed65811703eedc9eabb4f431d2ced9e504e5 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 9 Jul 2009 18:43:08 +0100 Subject: [PATCH] Use G_GINT64_FORMAT to convert gint64 to a string --- katze/katze-item.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/katze/katze-item.c b/katze/katze-item.c index be81ff76..30813cfa 100644 --- a/katze/katze-item.c +++ b/katze/katze-item.c @@ -584,7 +584,12 @@ katze_item_set_meta_integer (KatzeItem* item, g_return_if_fail (KATZE_IS_ITEM (item)); g_return_if_fail (key != NULL); - katze_item_set_meta_data_value (item, key, g_strdup_printf ("%lu", value)); + katze_item_set_meta_data_value (item, key, + #ifdef G_GINT64_FORMAT + g_strdup_printf ("%" G_GINT64_FORMAT, value)); + #else + g_strdup_printf ("%li", value)); + #endif } /**