diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-22 04:19:18 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-22 04:19:18 +0000 |
commit | 533a4c8d1cc3159fdf62cbc18e5f6c0791aa74c7 (patch) | |
tree | 84480f248e3e2f8269bf1f6056b7209fd948e2e2 | |
parent | 46cd2f463c5668f53436076e67db59fdc33ff384 (diff) |
merge revision(s) 43780:
util.c: more precision
* util.c (ruby_strtod): BigMath requires more precision.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@43783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | util.c | 2 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Fri Nov 22 13:18:28 2013 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * util.c (ruby_strtod): BigMath requires more precision. + Fri Nov 22 12:46:08 2013 Nobuyoshi Nakada <nobu@ruby-lang.org> * util.c (ruby_strtod): ignore too long fraction part, which does not @@ -2106,7 +2106,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++) @@ -1,6 +1,6 @@ #define RUBY_VERSION "2.0.0" #define RUBY_RELEASE_DATE "2013-11-22" -#define RUBY_PATCHLEVEL 352 +#define RUBY_PATCHLEVEL 353 #define RUBY_RELEASE_YEAR 2013 #define RUBY_RELEASE_MONTH 11 |