summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads/manager.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2024-03-24 15:06:48 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2024-03-28 16:29:08 +0100
commit1640c262dc63e2f8f43c0728dbe867c8fffe3e9d (patch)
tree9644711dbd72a85c0cf79e9a27ffc01dcc2be551 /libpthread/linuxthreads/manager.c
parent318858b4735dc38720be492cc30971ca1a1d55f8 (diff)
riscv64: implement Linuxthreads, from sorear
Diffstat (limited to 'libpthread/linuxthreads/manager.c')
-rw-r--r--libpthread/linuxthreads/manager.c2
1 files changed, 1 insertions, 1 deletions
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;