about summary refs log tree commit diff stats
path: root/src/libtools/threads32.c
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2025-09-04 17:26:39 +0800
committerGitHub <noreply@github.com>2025-09-04 11:26:39 +0200
commit6440aac9e1741549d20d9632f60e1ca3e016334e (patch)
treef7208f0e0bbc26c774126fc48423773d5c22be92 /src/libtools/threads32.c
parent4edba2e67a01e7baad3669111044143f3721b61f (diff)
downloadbox64-6440aac9e1741549d20d9632f60e1ca3e016334e.tar.gz
box64-6440aac9e1741549d20d9632f60e1ca3e016334e.zip
[BOX32] Fixed sign-extend issue when calling RunFunctionFmt with a pointer (#2938)
Diffstat (limited to 'src/libtools/threads32.c')
-rwxr-xr-xsrc/libtools/threads32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libtools/threads32.c b/src/libtools/threads32.c
index c72deca7..92e31240 100755
--- a/src/libtools/threads32.c
+++ b/src/libtools/threads32.c
@@ -369,7 +369,7 @@ GO(29)
 static uintptr_t my32_cleanup_routine_fct_##A = 0;  				\
 static void my32_cleanup_routine_##A(void* a)    					\
 {                                       							\
-    RunFunctionFmt(my32_cleanup_routine_fct_##A, "p", to_ptrv(a));	\
+    RunFunctionFmt(my32_cleanup_routine_fct_##A, "p", a);			\
 }
 SUPER()
 #undef GO
@@ -392,7 +392,7 @@ static void* findcleanup_routineFct(void* fct)
 static uintptr_t my32_key_destructor_fct_##A = 0;  					\
 static void my32_key_destructor_##A(void* a)    					\
 {                                       							\
-    RunFunctionFmt(my32_key_destructor_fct_##A, "p", to_ptrv(a));	\
+    RunFunctionFmt(my32_key_destructor_fct_##A, "p", a);			\
 }
 SUPER()
 #undef GO