X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdlib%2Fstrtoimax.c;h=aeb0397f9ef944c0a0204da44f2853e7104567a3;hb=368ba4a0a9aa5cc9a769872adbef6da433babf54;hp=1969109172b9c3af5e90000cb39a02af0ea1debb;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/stdlib/strtoimax.c b/src/stdlib/strtoimax.c index 19691091..aeb0397f 100644 --- a/src/stdlib/strtoimax.c +++ b/src/stdlib/strtoimax.c @@ -4,7 +4,7 @@ intmax_t strtoimax(const char *s1, char **p, int base) { - const unsigned char *s = s1; + const unsigned char *s = (const void *)s1; int sign = 0; uintmax_t x; @@ -15,7 +15,7 @@ intmax_t strtoimax(const char *s1, char **p, int base) if (*s == '-') sign = *s++; else if (*s == '+') s++; - x = strtoumax(s, p, base); + x = strtoumax((const void *)s, p, base); if (x > INTMAX_MAX) { if (!sign || -x != INTMAX_MIN) errno = ERANGE;