mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
channels_blend(): bow to clang14 -Wbitwise-instead-of-logical overlords
This commit is contained in:
parent
a2674d98ee
commit
d0ae404152
@ -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…
x
Reference in New Issue
Block a user