Skip to content

Commit

Permalink
[strtox] remove extra cast
Browse files Browse the repository at this point in the history
  • Loading branch information
mateoconlechuga committed Nov 21, 2024
1 parent cb7d415 commit 485c958
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libc/strtox.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 485c958

Please sign in to comment.