From a66c1e95f80d184b87d212c9939a787f88dd36e3 Mon Sep 17 00:00:00 2001 From: Tobias Wood Date: Tue, 9 Jan 2024 14:18:56 +0000 Subject: [PATCH] Fix a bitwise instead of logical warning --- include/notcurses/notcurses.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/notcurses/notcurses.h b/include/notcurses/notcurses.h index bff3ce795..fd754ee72 100644 --- a/include/notcurses/notcurses.h +++ b/include/notcurses/notcurses.h @@ -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