projects
/
gnulib.git
/ 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
3757723
..
d03a2e4
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;