Use G_GINT64_FORMAT to convert gint64 to a string
This commit is contained in:
parent
7ca782ec54
commit
3e80ed6581
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue