Skip to content

Commit f32e258

Browse files
authored
wasi_thread_start: remove a useless cast (#354)
1 parent 0b3b1bb commit f32e258

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

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

0 commit comments

Comments
 (0)