summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-18 08:01:13 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-18 08:01:13 (GMT)
commitc8590d60f1bc365cd462de7302351f6a15c9bf4e (patch)
treef2dfffee7626fbfd2c8f1e72f54d161342b534f8 /class.c
parent37b38306e85c80c809db0cc0a61d0aa562ef5158 (diff)
* method.h: constify rb_method_alias_struct::original_me and
rb_method_refined_struct::orig_me. * class.c (move_refined_method): use RB_OBJ_WRITE() for me->def->body.refined.orig_me. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r--class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/class.c b/class.c
index b8b44c9..f963f0c 100644
--- a/class.c
+++ b/class.c
@@ -915,7 +915,7 @@ move_refined_method(st_data_t key, st_data_t value, st_data_t data)
if (me->def->type == VM_METHOD_TYPE_REFINED) {
if (me->def->body.refined.orig_me) {
const rb_method_entry_t *orig_me = me->def->body.refined.orig_me, *new_me;
- me->def->body.refined.orig_me = NULL;
+ RB_OBJ_WRITE(me, &me->def->body.refined.orig_me, NULL);
new_me = rb_method_entry_clone(me);
st_add_direct(tbl, key, (st_data_t) new_me);
rb_method_entry_copy(me, orig_me);