mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
Negative RBOOL usage
This commit is contained in:
parent
77ee47188e
commit
069cca6f74
Notes:
git
2022-01-01 18:54:15 +09:00
9 changed files with 14 additions and 14 deletions
|
@ -2678,7 +2678,7 @@ basic_obj_respond_to(rb_execution_context_t *ec, VALUE obj, ID id, int pub)
|
|||
return FALSE;
|
||||
case 0:
|
||||
ret = basic_obj_respond_to_missing(ec, klass, obj, ID2SYM(id),
|
||||
pub ? Qfalse : Qtrue);
|
||||
RBOOL(!pub));
|
||||
return RTEST(ret) && ret != Qundef;
|
||||
default:
|
||||
return TRUE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue