Mercurial > hg > forks > geeqie
changeset 2055:a14181f455e5
Fix a snprintf() warning regarding unsigned int64 format string.
Solved by using "%llu" and type cast to (unsigned long long)
author | Laurent Monin <geeqie@norz.org> |
---|---|
date | Thu, 23 Dec 2010 15:35:24 +0100 |
parents | c1312c56b8c4 |
children | f59b27312a31 |
files | src/metadata.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/metadata.c Thu Dec 16 20:18:32 2010 +0100 +++ b/src/metadata.c Thu Dec 23 15:35:24 2010 +0100 @@ -409,7 +409,7 @@ { gchar string[50]; - g_snprintf(string, sizeof(string), "%ld", value); + g_snprintf(string, sizeof(string), "%llu", (unsigned long long) value); return metadata_write_string(fd, key, string); }