From e89b5efb708ca0c17feacf5382fbedd6eb477de9 Mon Sep 17 00:00:00 2001 From: Thomas Kolb Date: Wed, 21 Aug 2013 17:49:31 +0200 Subject: [PATCH] Fixed type warning --- src/dirlisting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dirlisting.c b/src/dirlisting.c index 2d9a5da..62df779 100644 --- a/src/dirlisting.c +++ b/src/dirlisting.c @@ -48,7 +48,7 @@ const char* format_size(off_t s) { } if(divisions == 0) { - sprintf(buf, "%lu B", s); + sprintf(buf, "%lli B", (long long)s); } else { sprintf(buf, "%.2f %ciB", fs, prefixes[divisions]); }