Do not add a pointer to the NULL constant

Warned-by: cppcheck (nullPointerArithmetic)
This commit is contained in:
Guillem Jover 2023-11-14 19:15:11 +01:00
parent 459b7f7d24
commit ecb44e1655

View File

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