From ecb44e165514885648240c1b139c4ab0c212a0fa Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 14 Nov 2023 19:15:11 +0100 Subject: [PATCH] Do not add a pointer to the NULL constant Warned-by: cppcheck (nullPointerArithmetic) --- src/merge.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/merge.c b/src/merge.c index c43866f..3f1b3fb 100644 --- a/src/merge.c +++ b/src/merge.c @@ -84,9 +84,8 @@ static void insertionsort(unsigned char *, size_t, size_t, */ /* Assumption: PSIZE is a power of 2. */ #define EVAL(p) (unsigned char **) \ - ((unsigned char *)0 + \ (((unsigned char *)p + PSIZE - 1 - \ - (unsigned char *)0) & ~(PSIZE - 1))) + (unsigned char *)0) & ~(PSIZE - 1)) /* * Arguments are as for qsort. -- 2.47.3