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

ruby-changes:45856

From: naruse <ko1@a...>
Date: Mon, 13 Mar 2017 01:54:18 +0900 (JST)
Subject: [ruby-changes:45856] naruse:r57928 (ruby_2_4): merge revision(s) 57778, 57779:

naruse	2017-03-13 01:29:47 +0900 (Mon, 13 Mar 2017)

  New Revision: 57928

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57928

  Log:
    merge revision(s) 57778,57779:
    
    string.c: [DOC] fix doc formatting for String#==, #===
    math.c: more accuracy
    
    * math.c (math_log10): calculate log10(2) for more accuracy.
      [ruby-core:79907] [Bug #13279]

  Modified directories:
    branches/ruby_2_4/
  Modified files:
    branches/ruby_2_4/math.c
    branches/ruby_2_4/string.c
    branches/ruby_2_4/version.h
Index: ruby_2_4/string.c
===================================================================
--- ruby_2_4/string.c	(revision 57927)
+++ ruby_2_4/string.c	(revision 57928)
@@ -3046,9 +3046,7 @@ str_eql(const VALUE str1, const VALUE st https://github.com/ruby/ruby/blob/trunk/ruby_2_4/string.c#L3046
  *     str == obj    -> true or false
  *     str === obj   -> true or false
  *
- *  === Equality
- *
- *  Returns whether +str+ == +obj+, similar to Object#==.
+ *  Equality---Returns whether +str+ == +obj+, similar to Object#==.
  *
  *  If +obj+ is not an instance of String but responds to +to_str+, then the
  *  two strings are compared using <code>obj.==</code>.
Index: ruby_2_4/version.h
===================================================================
--- ruby_2_4/version.h	(revision 57927)
+++ ruby_2_4/version.h	(revision 57928)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_4/version.h#L1
 #define RUBY_VERSION "2.4.0"
 #define RUBY_RELEASE_DATE "2017-03-13"
-#define RUBY_PATCHLEVEL 83
+#define RUBY_PATCHLEVEL 84
 
 #define RUBY_RELEASE_YEAR 2017
 #define RUBY_RELEASE_MONTH 3
Index: ruby_2_4/math.c
===================================================================
--- ruby_2_4/math.c	(revision 57927)
+++ ruby_2_4/math.c	(revision 57928)
@@ -563,7 +563,7 @@ math_log10(VALUE unused_obj, VALUE x) https://github.com/ruby/ruby/blob/trunk/ruby_2_4/math.c#L563
     /* check for pole error */
     if (d == 0.0) return DBL2NUM(-INFINITY);
 
-    return DBL2NUM(log10(d) + numbits * M_LN2/M_LN10); /* log10(d * 2 ** numbits) */
+    return DBL2NUM(log10(d) + numbits * log10(2)); /* log10(d * 2 ** numbits) */
 }
 
 /*

Property changes on: ruby_2_4
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r57778-57779


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

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