From: Ian Jackson Date: Thu, 15 Aug 2024 21:20:59 +0000 (+0100) Subject: Change file size type to unsigned long long X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=27d08f6c080bfaa87f8394d27e7a533503fe5e00;p=chiark-utils.git Change file size type to unsigned long long C99 broke this program. This fixes it. I have tested that with this change, my repro for #1075821 is gone. Closes: #1075821 Signed-off-by: Ian Jackson --- diff --git a/cprogs/summer.c b/cprogs/summer.c index 226fed1..412b175 100644 --- a/cprogs/summer.c +++ b/cprogs/summer.c @@ -260,8 +260,8 @@ static void node(const char *path, unsigned nodeflags, dev_t fs) { if (S_ISDIR(stab->st_mode) && hidedirsize) printf(" %10s","dir"); else - printf(" %10lu", - (unsigned long)stab->st_size); + printf(" %10llu", + (unsigned long long)stab->st_size); printf(" %4o %10ld %10ld", (unsigned)stab->st_mode & 07777U,