summaryrefslogtreecommitdiffstats
path: root/vm_eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_eval.c b/vm_eval.c
index e24f1c3d7..a0e35bd71 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -343,7 +343,7 @@ rb_method_call_status(rb_thread_t *th, rb_method_entry_t *me, call_type scope, V
if (self == Qundef) {
self = th->cfp->self;
}
- if (!rb_obj_is_kind_of(self, rb_class_real(defined_class))) {
+ if (!rb_obj_is_kind_of(self, defined_class)) {
return NOEX_PROTECTED;
}
}