[前][次][番号順一覧][スレッド一覧]

ruby-changes:31704

From: nagachika <ko1@a...>
Date: Fri, 22 Nov 2013 13:19:38 +0900 (JST)
Subject: [ruby-changes:31704] nagachika:r43783 (ruby_2_0_0): merge revision(s) 43780:

nagachika	2013-11-22 13:19:18 +0900 (Fri, 22 Nov 2013)

  New Revision: 43783

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43783

  Log:
    merge revision(s) 43780:
    
    util.c: more precision
    
    * util.c (ruby_strtod): BigMath requires more precision.

  Modified directories:
    branches/ruby_2_0_0/
  Modified files:
    branches/ruby_2_0_0/ChangeLog
    branches/ruby_2_0_0/util.c
    branches/ruby_2_0_0/version.h
Index: ruby_2_0_0/ChangeLog
===================================================================
--- ruby_2_0_0/ChangeLog	(revision 43782)
+++ ruby_2_0_0/ChangeLog	(revision 43783)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ChangeLog#L1
+Fri Nov 22 13:18:28 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* util.c (ruby_strtod): BigMath requires more precision.
+
 Fri Nov 22 12:46:08 2013  Nobuyoshi Nakada  <nobu@r...>
 
 	* util.c (ruby_strtod): ignore too long fraction part, which does not
Index: ruby_2_0_0/util.c
===================================================================
--- ruby_2_0_0/util.c	(revision 43782)
+++ ruby_2_0_0/util.c	(revision 43783)
@@ -2106,7 +2106,7 @@ break2: https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/util.c#L2106
         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++)
Index: ruby_2_0_0/version.h
===================================================================
--- ruby_2_0_0/version.h	(revision 43782)
+++ ruby_2_0_0/version.h	(revision 43783)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/version.h#L1
 #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

Property changes on: ruby_2_0_0
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r43780


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]