diff options
Diffstat (limited to 'src')
| -rwxr-xr-x | src/libtools/threads32.c | 4 | ||||
| -rwxr-xr-x | src/wrapped32/wrappedlibrt.c | 8 |
2 files changed, 6 insertions, 6 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 diff --git a/src/wrapped32/wrappedlibrt.c b/src/wrapped32/wrappedlibrt.c index 84b7730e..3b9221ff 100755 --- a/src/wrapped32/wrappedlibrt.c +++ b/src/wrapped32/wrappedlibrt.c @@ -37,10 +37,10 @@ GO(3) // sigev_notify #define GO(A) \ -static uintptr_t my32_sigev_notify_fct_##A = 0; \ -static void my32_sigev_notify_##A(void* sigval) \ -{ \ - RunFunctionFmt(my32_sigev_notify_fct_##A, "p", to_ptrv(sigval));\ +static uintptr_t my32_sigev_notify_fct_##A = 0; \ +static void my32_sigev_notify_##A(void* sigval) \ +{ \ + RunFunctionFmt(my32_sigev_notify_fct_##A, "p", sigval); \ } SUPER() #undef GO |