1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00
!= 1 correctly and more than one digit before decimal point..
This commit is contained in:
Ulrich Drepper
1999-10-30 04:34:35 +00:00
parent 2aa562e8c7
commit 6491b8094e
3 changed files with 15 additions and 2 deletions

View File

@ -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)
{