aboutsummaryrefslogtreecommitdiffstats
path: root/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index a7f22714fe..229b030606 100644
--- a/proc.c
+++ b/proc.c
@@ -2224,7 +2224,7 @@ umethod_bind(VALUE method, VALUE recv)
else {
klass = rb_include_class_new(methclass, klass);
}
- RB_OBJ_WRITE(method, &bound->me, rb_method_entry_complement_defined_class(bound->me, klass));
+ RB_OBJ_WRITE(method, &bound->me, rb_method_entry_complement_defined_class(bound->me, bound->me->called_id, klass));
}
return method;