projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix bugs in cancellable syscall asm
[musl]
/
src
/
stdlib
/
strtoimax.c
diff --git
a/src/stdlib/strtoimax.c
b/src/stdlib/strtoimax.c
index
1969109
..
aeb0397
100644
(file)
--- a/
src/stdlib/strtoimax.c
+++ b/
src/stdlib/strtoimax.c
@@
-4,7
+4,7
@@
intmax_t strtoimax(const char *s1, char **p, int base)
{
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;
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++;
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;
if (x > INTMAX_MAX) {
if (!sign || -x != INTMAX_MIN)
errno = ERANGE;