summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-22 04:19:18 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-22 04:19:18 +0000
commit533a4c8d1cc3159fdf62cbc18e5f6c0791aa74c7 (patch)
tree84480f248e3e2f8269bf1f6056b7209fd948e2e2
parent46cd2f463c5668f53436076e67db59fdc33ff384 (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--ChangeLog4
-rw-r--r--util.c2
-rw-r--r--version.h2
3 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 7a4ab22bfa..6734f63135 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/util.c b/util.c
index 8ab5acf460..8ffa24acdc 100644
--- a/util.c
+++ b/util.c
@@ -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++)
diff --git a/version.h b/version.h
index 3d92cd86cd..d37bf24fde 100644
--- a/version.h
+++ b/version.h
@@ -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