diff options
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c index 239f8b2874..4df1023136 100644 --- a/vm_method.c +++ b/vm_method.c @@ -323,7 +323,7 @@ rb_method_entry_make(VALUE klass, ID mid, rb_method_type_t type, switch(def->type) { case VM_METHOD_TYPE_ISEQ: - OBJ_WRITTEN(klass, Qundef, def->body.iseq); + OBJ_WRITTEN(klass, Qundef, def->body.iseq->self); break; case VM_METHOD_TYPE_IVAR: OBJ_WRITTEN(klass, Qundef, def->body.attr.location); |