diff options
author | wtchang%redhat.com <devnull@localhost> | 2006-12-21 22:41:42 +0000 |
---|---|---|
committer | wtchang%redhat.com <devnull@localhost> | 2006-12-21 22:41:42 +0000 |
commit | ded2b21e3ef3942c37611f6f41ab04324c5ae25f (patch) | |
tree | c7bc82dbb5aa20e414166670549a4f54c8fdf46c | |
parent | c75a83fc8f7cb179dbabe378d2fee3f4e2b2ca9f (diff) | |
download | nspr-hg-ded2b21e3ef3942c37611f6f41ab04324c5ae25f.tar.gz |
Bugzilla Bug 362134: fixed a crash in dtoa when running with reduced CPU
float precision. Original patch for jsdtoa.c in JavaScript by Keith Victor
<keith@virtock.com>. r=wtc.
-rw-r--r-- | pr/src/misc/prdtoa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pr/src/misc/prdtoa.c b/pr/src/misc/prdtoa.c index b7432a2f..07853967 100644 --- a/pr/src/misc/prdtoa.c +++ b/pr/src/misc/prdtoa.c @@ -3067,7 +3067,7 @@ dtoa goto no_digits; goto one_digit; } - for(i = 1;; i++, dval(d) *= 10.) { + for(i = 1; i <= k+1; i++, dval(d) *= 10.) { L = (Long)(dval(d) / ds); dval(d) -= L*ds; #ifdef Check_FLT_ROUNDS |