From 63242d0633f8687e02ff2394931ec29ec05adcda Mon Sep 17 00:00:00 2001 From: Danilo Horta Date: Sun, 11 Aug 2024 02:28:51 +0100 Subject: [PATCH] Fix macro HASZERO to ensure correct precedence --- hmmer-reader/fsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hmmer-reader/fsm.c b/hmmer-reader/fsm.c index 36e56f6..8d8a4fe 100644 --- a/hmmer-reader/fsm.c +++ b/hmmer-reader/fsm.c @@ -239,7 +239,7 @@ static void *memccpy_musl(void *restrict dest, const void *restrict src, int c, #define ALIGN (sizeof(size_t) - 1) #define ONES ((size_t) - 1 / UCHAR_MAX) #define HIGHS (ONES * (UCHAR_MAX / 2 + 1)) -#define HASZERO(x) ((x) - ONES & ~(x) & HIGHS) +#define HASZERO(x) (((x) - ONES) & (~(x) & HIGHS)) unsigned char *d = dest; const unsigned char *s = src;