summaryrefslogtreecommitdiff
path: root/lib/human.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-08-07 00:09:38 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-08-07 00:09:38 +0000
commita62be9f4039b4499cfbb76e394cad2259d03fa84 (patch)
tree5f444ac72b8b2418f2530af42b6c2fee823d18db /lib/human.c
parent4d52451995952d65b6772a7849e88866b3542157 (diff)
downloadgnulib-a62be9f4039b4499cfbb76e394cad2259d03fa84.tar.gz
Merge from coreutils.
Diffstat (limited to 'lib/human.c')
-rw-r--r--lib/human.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/human.c b/lib/human.c
index dbf536b1ef..f024c73ea0 100644
--- a/lib/human.c
+++ b/lib/human.c
@@ -300,8 +300,8 @@ human_readable (uintmax_t n, char *buf, int opts,
{
do
{
- unsigned r10 = (amt % base) * 10 + tenths;
- unsigned r2 = (r10 % base) * 2 + (rounding >> 1);
+ unsigned int r10 = (amt % base) * 10 + tenths;
+ unsigned int r2 = (r10 % base) * 2 + (rounding >> 1);
amt /= base;
tenths = r10 / base;
rounding = (r2 < base