Skip to content

Commit

Permalink
Fix macro HASZERO to ensure correct precedence
Browse files Browse the repository at this point in the history
  • Loading branch information
horta committed Aug 11, 2024
1 parent baf0168 commit 63242d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hmmer-reader/fsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 63242d0

Please sign in to comment.