diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-22 04:10:46 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-22 04:10:46 +0000 |
commit | cf0efb8327d09da9ca6934de525c94bb377ad998 (patch) | |
tree | 6b03c818e9e759c99973082160e77e5b1d07c6a4 /util.c | |
parent | 5cb83d9dab13e14e6146f455ffd9fed4254d238f (diff) | |
download | ruby-cf0efb8327d09da9ca6934de525c94bb377ad998.tar.gz |
util.c: more precision
* util.c (ruby_strtod): BigMath requires more precision.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2107,7 +2107,7 @@ break2: for (; c >= '0' && c <= '9'; c = *++s) { have_dig: nz++; - if (nf > DBL_DIG * 2) continue; + if (nf > DBL_DIG * 4) continue; if (c -= '0') { nf += nz; for (i = 1; i < nz; i++) |