Fix a bitwise instead of logical warning

pull/2746/head
Tobias Wood 4 months ago
parent c19a715773
commit a66c1e95f8

@ -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

Loading…
Cancel
Save