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
This commit is contained in:
parent
5cb83d9dab
commit
cf0efb8327
2
util.c
2
util.c
@ -2107,7 +2107,7 @@ break2:
|
|||||||
for (; c >= '0' && c <= '9'; c = *++s) {
|
for (; c >= '0' && c <= '9'; c = *++s) {
|
||||||
have_dig:
|
have_dig:
|
||||||
nz++;
|
nz++;
|
||||||
if (nf > DBL_DIG * 2) continue;
|
if (nf > DBL_DIG * 4) continue;
|
||||||
if (c -= '0') {
|
if (c -= '0') {
|
||||||
nf += nz;
|
nf += nz;
|
||||||
for (i = 1; i < nz; i++)
|
for (i = 1; i < nz; i++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user