mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-07 09:48:12 +01:00
Do not add a pointer to the NULL constant
Warned-by: cppcheck (nullPointerArithmetic)
This commit is contained in:
parent
459b7f7d24
commit
ecb44e1655
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user