summaryrefslogtreecommitdiff
path: root/lib/human.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-07-22 18:30:16 +0000
committerJim Meyering <jim@meyering.net>1998-07-22 18:30:16 +0000
commit3b87431a699eba8fb1afabd6fd73bf1b31414f2d (patch)
tree59bd78d47aaf217b80d0dd8e05184aa723da1ec5 /lib/human.c
parentd09816b054a8bb8b26057fcf0f607670fc6c8fe5 (diff)
downloadcoreutils-3b87431a699eba8fb1afabd6fd73bf1b31414f2d.tar.xz
(human_readable): amt -> damt, to fix typo when
computing which power to use after overflow occurs during multiplication. From Paul Eggert.
Diffstat (limited to 'lib/human.c')
-rw-r--r--lib/human.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/human.c b/lib/human.c
index 37577234a..d03a2e4e4 100644
--- a/lib/human.c
+++ b/lib/human.c
@@ -158,7 +158,7 @@ human_readable (uintmax_t n, char *buf,
e *= base;
power++;
}
- while (e * base <= amt && power < sizeof suffixes - 1);
+ while (e * base <= damt && power < sizeof suffixes - 1);
damt /= e;