Skip to content

Commit

Permalink
util.c: more precision
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nobu committed Nov 22, 2013
1 parent 5cb83d9 commit cf0efb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.c
Expand Up @@ -2107,7 +2107,7 @@ ruby_strtod(const char *s00, char **se)
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++)
Expand Down

0 comments on commit cf0efb8

Please sign in to comment.