diff --git a/libc/bionic/pthread_create.cpp b/libc/bionic/pthread_create.cpp index 179ae95da..cc37f5a74 100644 --- a/libc/bionic/pthread_create.cpp +++ b/libc/bionic/pthread_create.cpp @@ -77,7 +77,7 @@ void __init_alternate_signal_stack(pthread_internal_t* thread) { return; } stack_t ss; - ss.ss_sp = stack_base + PAGE_SIZE; + ss.ss_sp = reinterpret_cast(stack_base) + PAGE_SIZE; ss.ss_size = SIGNAL_STACK_SIZE - PAGE_SIZE; ss.ss_flags = 0; sigaltstack(&ss, NULL);