Skip to content

Commit 485c958

Browse files
[strtox] remove extra cast
1 parent cb7d415 commit 485c958

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libc/strtox.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ STRTOX_TYPE STRTOX_NAME(const char *nptr, char **endptr, int base)
113113
{
114114
if (endptr)
115115
{
116-
*endptr = (char *)(uintptr_t)nptr;
116+
*endptr = (char *)nptr;
117117
}
118118

119119
return 0;
@@ -207,7 +207,7 @@ STRTOX_TYPE STRTOX_NAME(const char *nptr, char **endptr, int base)
207207

208208
if (endptr)
209209
{
210-
*endptr = (char *)(uintptr_t)(any ? s - 1 : nptr);
210+
*endptr = (char *)(any ? s - 1 : nptr);
211211
}
212212

213213
return acc;

0 commit comments

Comments
 (0)