diff options
Diffstat (limited to 'coreutils/sum.c')
| -rw-r--r-- | coreutils/sum.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/sum.c b/coreutils/sum.c index 78e69acc6..7c7cc6b6b 100644 --- a/coreutils/sum.c +++ b/coreutils/sum.c | |||
| @@ -82,9 +82,9 @@ static unsigned sum_file(const char *file, unsigned type) | |||
| 82 | if (type >= SUM_SYSV) { | 82 | if (type >= SUM_SYSV) { |
| 83 | r = (s & 0xffff) + ((s & 0xffffffff) >> 16); | 83 | r = (s & 0xffff) + ((s & 0xffffffff) >> 16); |
| 84 | s = (r & 0xffff) + (r >> 16); | 84 | s = (r & 0xffff) + (r >> 16); |
| 85 | printf("%u %llu %s\n", s, (total_bytes + 511) / 512, file); | 85 | printf("%u %"LL_FMT"u %s\n", s, (total_bytes + 511) / 512, file); |
| 86 | } else | 86 | } else |
| 87 | printf("%05u %5llu %s\n", s, (total_bytes + 1023) / 1024, file); | 87 | printf("%05u %5"LL_FMT"u %s\n", s, (total_bytes + 1023) / 1024, file); |
| 88 | return 1; | 88 | return 1; |
| 89 | #undef buf | 89 | #undef buf |
| 90 | } | 90 | } |
