Skip to content

Commit 70d101a

Browse files
yamtjohn-sharratt
authored andcommitted
wasi_thread_start: remove a useless cast (WebAssembly#354)
1 parent bc16aa0 commit 70d101a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libc-top-half/musl/src/thread/pthread_create.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,7 @@ _Noreturn void wasi_thread_start(int tid, void *p)
293293
"global.set __stack_pointer\n"
294294
:: "r"(self->stack));
295295
// Execute the user's start function.
296-
int (*start)(void*) = (int(*)(void*)) args->start_func;
297-
__pthread_exit((void *)(uintptr_t)start(args->start_arg));
296+
__pthread_exit(args->start_func(args->start_arg));
298297
}
299298
#endif
300299

0 commit comments

Comments
 (0)