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 75f6ef60a..deb068e10 100644 --- a/coreutils/sum.c +++ b/coreutils/sum.c | |||
@@ -70,9 +70,9 @@ static unsigned sum_file(const char *file, unsigned type) | |||
70 | if (type >= SUM_SYSV) { | 70 | if (type >= SUM_SYSV) { |
71 | r = (s & 0xffff) + ((s & 0xffffffff) >> 16); | 71 | r = (s & 0xffff) + ((s & 0xffffffff) >> 16); |
72 | s = (r & 0xffff) + (r >> 16); | 72 | s = (r & 0xffff) + (r >> 16); |
73 | printf("%d %llu %s\n", s, (total_bytes + 511) / 512, file); | 73 | printf("%u %llu %s\n", s, (total_bytes + 511) / 512, file); |
74 | } else | 74 | } else |
75 | printf("%05d %5llu %s\n", s, (total_bytes + 1023) / 1024, file); | 75 | printf("%05u %5llu %s\n", s, (total_bytes + 1023) / 1024, file); |
76 | return 1; | 76 | return 1; |
77 | #undef buf | 77 | #undef buf |
78 | } | 78 | } |