diff --git a/src/libc/strtox.h b/src/libc/strtox.h index 2c54dd1ab..a783c846f 100644 --- a/src/libc/strtox.h +++ b/src/libc/strtox.h @@ -113,7 +113,7 @@ STRTOX_TYPE STRTOX_NAME(const char *nptr, char **endptr, int base) { if (endptr) { - *endptr = (char *)(uintptr_t)nptr; + *endptr = (char *)nptr; } return 0; @@ -207,7 +207,7 @@ STRTOX_TYPE STRTOX_NAME(const char *nptr, char **endptr, int base) if (endptr) { - *endptr = (char *)(uintptr_t)(any ? s - 1 : nptr); + *endptr = (char *)(any ? s - 1 : nptr); } return acc;