aboutsummaryrefslogtreecommitdiff
path: root/stdlib/strtod.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-10-30 04:34:35 +0000
committerUlrich Drepper <drepper@redhat.com>1999-10-30 04:34:35 +0000
commit6491b8094e929133e3eb8793bb6296f69fb54a78 (patch)
tree6168acb3feb54bcf45b3c917e1b8fd57e66926fe /stdlib/strtod.c
parent2aa562e8c7f41bbabb1f80b97927ec2eedbdf639 (diff)
downloadglibc-6491b8094e929133e3eb8793bb6296f69fb54a78.zip
glibc-6491b8094e929133e3eb8793bb6296f69fb54a78.tar.gz
glibc-6491b8094e929133e3eb8793bb6296f69fb54a78.tar.bz2
Update.
!= 1 correctly and more than one digit before decimal point..
Diffstat (limited to 'stdlib/strtod.c')
-rw-r--r--stdlib/strtod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/strtod.c b/stdlib/strtod.c
index 4a3c8a2..f2ff79f 100644
--- a/stdlib/strtod.c
+++ b/stdlib/strtod.c
@@ -824,7 +824,7 @@ INTERNAL (STRTOF) (nptr, endptr, group LOCALE_PARAM)
}
/* Adjust the exponent for the bits we are shifting in. */
- exponent += bits - 1;
+ exponent += bits - 1 + (int_no - 1) * 4;
while (--dig_no > 0 && idx >= 0)
{