ruby-changes:45363
From: nobu <ko1@a...>
Date: Fri, 27 Jan 2017 12:24:53 +0900 (JST)
Subject: [ruby-changes:45363] nobu:r57436 (trunk): enum.c: write barrier
nobu 2017-01-27 12:24:45 +0900 (Fri, 27 Jan 2017) New Revision: 57436 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57436 Log: enum.c: write barrier * enum.c (rb_nmin_run): set the class with write barrier. Modified files: trunk/enum.c Index: enum.c =================================================================== --- enum.c (revision 57435) +++ enum.c (revision 57436) @@ -1436,7 +1436,7 @@ rb_nmin_run(VALUE obj, VALUE num, int by https://github.com/ruby/ruby/blob/trunk/enum.c#L1436 if (rev) { rb_ary_reverse(result); } - *((VALUE *)&RBASIC(result)->klass) = rb_cArray; + RBASIC_SET_CLASS(result, rb_cArray); return result; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/