summaryrefslogtreecommitdiff
path: root/libc/stdlib
diff options
context:
space:
mode:
authorjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2010-09-06 15:29:36 +0000
committerjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2010-09-06 15:29:36 +0000
commit274e6d871acc08da2eb7a30bb6c4604885475465 (patch)
tree5cf42baabb539a31cf03ec2b4057bd33fce46d9c /libc/stdlib
parent096e9b4c79c701a316691af323848344be3e9800 (diff)
Merge changes between r11304 and r11460 from /fsf/trunk.
git-svn-id: svn://svn.eglibc.org/trunk@11461 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/stdlib')
-rw-r--r--libc/stdlib/strtod_l.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/stdlib/strtod_l.c b/libc/stdlib/strtod_l.c
index e34ec14c3..a38242ac0 100644
--- a/libc/stdlib/strtod_l.c
+++ b/libc/stdlib/strtod_l.c
@@ -1504,7 +1504,9 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc)
register int i;
(void) __mpn_lshift (&retval[used
/ BITS_PER_MP_LIMB],
- retval, RETURN_LIMB_SIZE,
+ retval,
+ (RETURN_LIMB_SIZE
+ - used / BITS_PER_MP_LIMB),
used % BITS_PER_MP_LIMB);
for (i = used / BITS_PER_MP_LIMB - 1; i >= 0; --i)
retval[i] = 0;