diff --git a/vm_insnhelper.c b/vm_insnhelper.c index edf4e46652..cd71c7ae43 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -927,11 +927,11 @@ check_match(VALUE pattern, VALUE target, enum vm_check_match_type type) VALUE defined_class; rb_method_entry_t *me = rb_method_entry_with_refinements(CLASS_OF(pattern), idEqq, &defined_class); if (me) { - return vm_call0(GET_THREAD(), pattern, idEqq, 1, &target, me, defined_class); + return vm_call0(GET_THREAD(), pattern, idEqq, 1, &target, me, defined_class); } else { - /* fallback to funcall (e.g. method_missing) */ - return rb_funcall2(pattern, idEqq, 1, &target); + /* fallback to funcall (e.g. method_missing) */ + return rb_funcall2(pattern, idEqq, 1, &target); } } default: