From: Jim Meyering Date: Wed, 22 Jul 1998 18:30:16 +0000 (+0000) Subject: (human_readable): amt -> damt, to fix typo when X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23360fcb0a3b5440391e54f9037ea8f3bbed391c;p=pspp (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;