posix_memalign should fail if size is not a multiple of sizeof(void *)
[musl] / src / stdlib / strtoumax.c
index a529f6e..f190247 100644 (file)
@@ -26,7 +26,7 @@ static const unsigned char digits[] = {
 
 uintmax_t strtoumax(const char *s1, char **p, int base)
 {
-       const unsigned char *s = s1;
+       const unsigned char *s = (void *)s1;
        size_t x1, z1;
        uintmax_t x, z=0;
        int sign = 0;