Skip to content

Commit 85ff21c

Browse files
committed
RBOOL is unnecessary in C boolean context
Fix a `-Wint-in-bool-context` warning. ``` proc.c:688:33: warning: '?:' using integer constants in boolean context [-Wint-in-bool-context] 688 | if (RBOOL(get_local_variable_ptr(&env, idItImplicit, FALSE))) { ```
1 parent 74b18b5 commit 85ff21c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ bind_implicit_parameters(VALUE bindval)
685685
GetBindingPtr(bindval, bind);
686686
env = VM_ENV_ENVVAL_PTR(vm_block_ep(&bind->block));
687687

688-
if (RBOOL(get_local_variable_ptr(&env, idItImplicit, FALSE))) {
688+
if (get_local_variable_ptr(&env, idItImplicit, FALSE)) {
689689
return rb_ary_new_from_args(1, ID2SYM(idIt));
690690
}
691691

0 commit comments

Comments
 (0)