Browse Source

wasi_thread_start: remove a useless cast (#354)

pull/356/head
YAMAMOTO Takashi 2 years ago
committed by GitHub
parent
commit
f32e25870f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      libc-top-half/musl/src/thread/pthread_create.c

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

@ -291,8 +291,7 @@ _Noreturn void wasi_thread_start(int tid, void *p)
"global.set __stack_pointer\n"
:: "r"(self->stack));
// Execute the user's start function.
int (*start)(void*) = (int(*)(void*)) args->start_func;
__pthread_exit((void *)(uintptr_t)start(args->start_arg));
__pthread_exit(args->start_func(args->start_arg));
}
#endif

Loading…
Cancel
Save