summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-11 18:15:50 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-11 18:15:50 +0000
commitaa89e910d03662498ec516d8b785ac393f59c885 (patch)
tree0b57ea7fbc44e17aa5d82f392b7ba7fe18cecedf /enum.c
parentcfb3f0cceeab78add238050b8901bccbcb315229 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enum.c b/enum.c
index 70b7729c88..678ac3e1e0 100644
--- a/enum.c
+++ b/enum.c
@@ -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;
}