From 27d08f6c080bfaa87f8394d27e7a533503fe5e00 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 15 Aug 2024 22:20:59 +0100 Subject: [PATCH] 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 --- cprogs/summer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 2.30.2