From: Christian Dywan Date: Thu, 9 Jul 2009 17:43:08 +0000 (+0100) Subject: Use G_GINT64_FORMAT to convert gint64 to a string X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e80ed65811703eedc9eabb4f431d2ced9e504e5;p=midori Use G_GINT64_FORMAT to convert gint64 to a string --- 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 } /**