From: Jim Meyering Date: Wed, 22 Jul 1998 18:30:16 +0000 (+0000) Subject: (human_readable): amt -> damt, to fix typo when X-Git-Tag: FILEUTILS-3_16s~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b87431a699eba8fb1afabd6fd73bf1b31414f2d;p=thirdparty%2Fcoreutils.git (human_readable): amt -> damt, to fix typo when computing which power to use after overflow occurs during multiplication. From Paul Eggert. --- diff --git a/lib/human.c b/lib/human.c index 37577234a1..d03a2e4e47 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;