summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-01-01 15:41:00 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-01-01 17:02:04 +0900
commit069cca6f7459da5cc502d0c51f60a9813c611b31 (patch)
treee33986c53af62142b310b187fdf50abea2aa5203 /numeric.c
parent77ee47188efc64fe8b508494e9b11e8ed481d33c (diff)
Negative RBOOL usage
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5385
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numeric.c b/numeric.c
index 9d5695de23..3165556a7f 100644
--- a/numeric.c
+++ b/numeric.c
@@ -3657,7 +3657,7 @@ static VALUE
int_anybits_p(VALUE num, VALUE mask)
{
mask = rb_to_int(mask);
- return int_zero_p(rb_int_and(num, mask)) ? Qfalse : Qtrue;
+ return RBOOL(!int_zero_p(rb_int_and(num, mask)));
}
/*