aboutsummaryrefslogtreecommitdiffstats
path: root/vm_method.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c
index 90d543793a..96fc4b6855 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -1916,7 +1916,7 @@ vm_respond_to(rb_thread_t *th, VALUE klass, VALUE obj, ID id, int priv)
const rb_method_entry_t *const me =
method_entry_get(klass, resid, &defined_class);
- if (!me) return TRUE;
+ if (!me) return -1;
if (METHOD_ENTRY_BASIC(me)) {
return -1;
}