Fix a bitwise instead of logical warning

This commit is contained in:
Tobias Wood 2024-01-09 14:18:56 +00:00 committed by nick black
parent c19a715773
commit d9cc551f5a
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -202,7 +202,7 @@ ncchannel_set_palindex(uint32_t* channel, unsigned idx){
static inline bool
ncchannel_rgb_p(uint32_t channel){
// bitwise or is intentional (allows compiler more freedom)
return !(ncchannel_default_p(channel) | ncchannel_palindex_p(channel));
return !(ncchannel_default_p(channel) || ncchannel_palindex_p(channel));
}
// Extract the 8-bit red component from a 32-bit channel. Only valid if