Compare commits

...
Author SHA1 Message Date
Malavan Sotheeswaran f80f4b2e24 need to include stdint for uintptr_t 2022-03-31 19:47:13 -07:00
Malavan Sotheeswaran 44206187a2 cannot mod a pointer 2022-03-31 18:55:12 -07:00
Malavan Sotheeswaran 34ac7488eb remove nullptr subtraction 2022-03-31 18:51:40 -07:00
+2 -1
View File
@@ -41,6 +41,7 @@
#include <errno.h>
#include <stdlib.h>
#include <stdint.h>
static inline char *med3 (char *, char *, char *,
int (*)(const void *, const void *));
@@ -62,7 +63,7 @@ static inline void swapfunc (char *, char *, size_t, int);
} while (--i > 0); \
}
#define SWAPINIT(a, es) swaptype = ((char *)a - (char *)0) % sizeof(long) || \
#define SWAPINIT(a, es) swaptype = (uintptr_t)a % sizeof(long) || \
es % sizeof(long) ? 2 : es == sizeof(long)? 0 : 1;
static inline void