1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00
2006-12-09  Ulrich Drepper  <drepper@redhat.com>
	[BZ #3674]
	* stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
	correctly if removing trailing zero of hex-float.
This commit is contained in:
Ulrich Drepper
2006-12-10 00:03:22 +00:00
parent a822d9f446
commit d117c1ce4d
2 changed files with 7 additions and 1 deletions

View File

@ -888,7 +888,7 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc)
--expp;
--dig_no;
--int_no;
++exponent;
exponent += base == 16 ? 4 : 1;
}
while (dig_no > 0 && exponent < 0);