summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-27 03:24:45 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-27 03:24:45 (GMT)
commit70410163f55bacb7995204b8cc1b8d09dffe79fb (patch)
tree18232c3ae3056cf599e861f8f3e72c018496f322 /enum.c
parent2c1bdb584996650f0448d5c2f022d64268f90092 (diff)
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/trunk@57436 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 64bdbdb..7dd1ae3 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;
}