diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-11 18:15:50 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-11 18:15:50 +0000 |
commit | aa89e910d03662498ec516d8b785ac393f59c885 (patch) | |
tree | 0b57ea7fbc44e17aa5d82f392b7ba7fe18cecedf /enum.c | |
parent | cfb3f0cceeab78add238050b8901bccbcb315229 (diff) |
merge revision(s) 57436:
enum.c: write barrier
* enum.c (rb_nmin_run): set the class with write barrier.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@57877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enum.c')
-rw-r--r-- | enum.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1436,7 +1436,7 @@ rb_nmin_run(VALUE obj, VALUE num, int by, int rev, int ary) if (rev) { rb_ary_reverse(result); } - *((VALUE *)&RBASIC(result)->klass) = rb_cArray; + RBASIC_SET_CLASS(result, rb_cArray); return result; } |