channels_blend(): bow to clang14 -Wbitwise-instead-of-logical overlords

pull/2747/head
nick black 5 months ago
parent a2674d98ee
commit d0ae404152
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -1358,9 +1358,7 @@ channels_blend(notcurses* nc, unsigned c1, unsigned c2, unsigned* blends,
}
}else if(ncchannel_default_p(c1) && ncchannel_default_p(c2)){
// do nothing, leave as default
// intentional bitwise AND on the first condition, to eliminate the
// dependency due to C's short-circuit evaluation
}else if((ncchannel_palindex_p(c1) & ncchannel_palindex_p(c2)) &&
}else if((ncchannel_palindex_p(c1) && ncchannel_palindex_p(c2)) &&
ncchannel_palindex(c1) == ncchannel_palindex(c2)){
// do nothing, leave as palette
}else{

Loading…
Cancel
Save