projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ce9913
)
(human_readable): amt -> damt, to fix typo when
author
Jim Meyering
<jim@meyering.net>
Wed, 22 Jul 1998 18:30:16 +0000
(18:30 +0000)
committer
Jim Meyering
<jim@meyering.net>
Wed, 22 Jul 1998 18:30:16 +0000
(18:30 +0000)
computing which power to use after overflow occurs during
multiplication.
From Paul Eggert.
lib/human.c
patch
|
blob
|
history
diff --git
a/lib/human.c
b/lib/human.c
index 37577234a1907cd67ce95cfd241152680e987214..d03a2e4e47829a2e87ae72bb06105bfa404325e9 100644
(file)
--- 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 <=
d
amt && power < sizeof suffixes - 1);
damt /= e;