From 1640c262dc63e2f8f43c0728dbe867c8fffe3e9d Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 24 Mar 2024 15:06:48 +0100 Subject: riscv64: implement Linuxthreads, from sorear --- libpthread/linuxthreads/manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpthread/linuxthreads/manager.c') diff --git a/libpthread/linuxthreads/manager.c b/libpthread/linuxthreads/manager.c index 122997b10..73fd1dcdb 100644 --- a/libpthread/linuxthreads/manager.c +++ b/libpthread/linuxthreads/manager.c @@ -455,7 +455,7 @@ static int pthread_allocate_stack(const pthread_attr_t *attr, * the kernel chokes on a non-aligned stack frame. Choose the lower * available word boundary. */ - new_thread = ((pthread_descr) ((int)(new_thread_bottom + stacksize) & -sizeof(void*))) - 1; + new_thread = ((pthread_descr) ((long)(new_thread_bottom + stacksize) & -sizeof(void*))) - 1; guardaddr = NULL; guardsize = 0; -- cgit v1.2.3