Use G_GINT64_FORMAT to convert gint64 to a string

This commit is contained in:
Christian Dywan 2009-07-09 18:43:08 +01:00
parent 7ca782ec54
commit 3e80ed6581

View file

@ -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
}
/**