From 23360fcb0a3b5440391e54f9037ea8f3bbed391c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 22 Jul 1998 18:30:16 +0000 Subject: [PATCH] (human_readable): amt -> damt, to fix typo when computing which power to use after overflow occurs during multiplication. From Paul Eggert. --- lib/human.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2