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

ruby-changes:45804

From: naruse <ko1@a...>
Date: Sun, 12 Mar 2017 03:15:54 +0900 (JST)
Subject: [ruby-changes:45804] naruse:r57877 (ruby_2_4): merge revision(s) 57436:

naruse	2017-03-12 03:15:50 +0900 (Sun, 12 Mar 2017)

  New Revision: 57877

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

  Log:
    merge revision(s) 57436:
    
    enum.c: write barrier
    
    * enum.c (rb_nmin_run): set the class with write barrier.

  Modified directories:
    branches/ruby_2_4/
  Modified files:
    branches/ruby_2_4/enum.c
    branches/ruby_2_4/version.h
Index: ruby_2_4/version.h
===================================================================
--- ruby_2_4/version.h	(revision 57876)
+++ ruby_2_4/version.h	(revision 57877)
@@ -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-12"
-#define RUBY_PATCHLEVEL 42
+#define RUBY_PATCHLEVEL 43
 
 #define RUBY_RELEASE_YEAR 2017
 #define RUBY_RELEASE_MONTH 3
Index: ruby_2_4/enum.c
===================================================================
--- ruby_2_4/enum.c	(revision 57876)
+++ ruby_2_4/enum.c	(revision 57877)
@@ -1436,7 +1436,7 @@ rb_nmin_run(VALUE obj, VALUE num, int by https://github.com/ruby/ruby/blob/trunk/ruby_2_4/enum.c#L1436
     if (rev) {
         rb_ary_reverse(result);
     }
-    *((VALUE *)&RBASIC(result)->klass) = rb_cArray;
+    RBASIC_SET_CLASS(result, rb_cArray);
     return result;
 
 }

Property changes on: ruby_2_4
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r57436


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

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