From 707f25dfc0a63d264e9da00368cbab5bd0f6a8c9 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Wed, 21 Dec 2011 23:32:10 +0100 Subject: Fix division by denominator with more than two limbs in strtold --- stdlib/strtod_l.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'stdlib/strtod_l.c') diff --git a/stdlib/strtod_l.c b/stdlib/strtod_l.c index b3380fd..f24d4de 100644 --- a/stdlib/strtod_l.c +++ b/stdlib/strtod_l.c @@ -1513,6 +1513,7 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc) assert (numsize == densize); for (i = numsize; i > 0; --i) num[i] = num[i - 1]; + num[0] = 0; } den[densize] = 0; @@ -1557,6 +1558,7 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc) n0 = num[densize] = num[densize - 1]; for (i = densize - 1; i > 0; --i) num[i] = num[i - 1]; + num[0] = 0; got_limb; } -- cgit v1.1