diff options
author | wtchang%redhat.com <devnull@localhost> | 2006-12-21 22:44:13 +0000 |
---|---|---|
committer | wtchang%redhat.com <devnull@localhost> | 2006-12-21 22:44:13 +0000 |
commit | 0e7cd13904ea4e8ea3cf4a01468f367c53c52ae2 (patch) | |
tree | c7bc82dbb5aa20e414166670549a4f54c8fdf46c | |
parent | aa052779d10e773817b0e41d0dd85dfd2ff49141 (diff) | |
download | nspr-hg-0e7cd13904ea4e8ea3cf4a01468f367c53c52ae2.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.
Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH
-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 |