aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-22 04:10:46 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-22 04:10:46 +0000
commitcf0efb8327d09da9ca6934de525c94bb377ad998 (patch)
tree6b03c818e9e759c99973082160e77e5b1d07c6a4 /util.c
parent5cb83d9dab13e14e6146f455ffd9fed4254d238f (diff)
downloadruby-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index cadbbf49d3..f6f233b6e4 100644
--- a/util.c
+++ b/util.c
@@ -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++)