From 069cca6f7459da5cc502d0c51f60a9813c611b31 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 1 Jan 2022 15:41:00 +0900 Subject: Negative RBOOL usage --- proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proc.c') diff --git a/proc.c b/proc.c index 6cdd7bd836..ab6cce8fb8 100644 --- a/proc.c +++ b/proc.c @@ -1604,7 +1604,7 @@ respond_to_missing_p(VALUE klass, VALUE obj, VALUE sym, int scope) if (obj == Qundef) return 0; if (rb_method_basic_definition_p(klass, rmiss)) return 0; - return RTEST(rb_funcall(obj, rmiss, 2, sym, scope ? Qfalse : Qtrue)); + return RTEST(rb_funcall(obj, rmiss, 2, sym, RBOOL(!scope))); } -- cgit v1.2.1