aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.c
diff options
context:
space:
mode:
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iseq.c b/iseq.c
index 4e11679ed8..1eed85ba33 100644
--- a/iseq.c
+++ b/iseq.c
@@ -1941,7 +1941,7 @@ rb_iseq_clone(VALUE iseqval, VALUE newcbase)
if (iseq0->cref_stack->nd_next) {
RB_OBJ_WRITE(iseq1->cref_stack, &iseq1->cref_stack->nd_next, iseq0->cref_stack->nd_next);
}
- RB_OBJ_WRITE(iseq1, &iseq1->klass, newcbase);
+ RB_OBJ_WRITE(iseq1->self, &iseq1->klass, newcbase);
}
return newiseq;