diff --git a/lib/libkse/thread/thr_sig.c b/lib/libkse/thread/thr_sig.c index b001c7bb338e..94e56306b371 100644 --- a/lib/libkse/thread/thr_sig.c +++ b/lib/libkse/thread/thr_sig.c @@ -195,8 +195,8 @@ _thr_sig_handler(int sig, siginfo_t *info, ucontext_t *ucp) != 0) || (info == NULL)) (*(sigfunc))(sig, info, ucp); else - (*(sigfunc))(sig, (siginfo_t *)info->si_code, - ucp); + (*(sigfunc))(sig, + (siginfo_t*)(intptr_t)info->si_code, ucp); } } else { @@ -253,7 +253,8 @@ thr_sig_invoke_handler(struct pthread *curthread, int sig, siginfo_t *info, (info == NULL)) (*(sigfunc))(sig, info, ucp); else - (*(sigfunc))(sig, (siginfo_t *)info->si_code, ucp); + (*(sigfunc))(sig, (siginfo_t*)(intptr_t)info->si_code, + ucp); } /* diff --git a/lib/libpthread/thread/thr_sig.c b/lib/libpthread/thread/thr_sig.c index b001c7bb338e..94e56306b371 100644 --- a/lib/libpthread/thread/thr_sig.c +++ b/lib/libpthread/thread/thr_sig.c @@ -195,8 +195,8 @@ _thr_sig_handler(int sig, siginfo_t *info, ucontext_t *ucp) != 0) || (info == NULL)) (*(sigfunc))(sig, info, ucp); else - (*(sigfunc))(sig, (siginfo_t *)info->si_code, - ucp); + (*(sigfunc))(sig, + (siginfo_t*)(intptr_t)info->si_code, ucp); } } else { @@ -253,7 +253,8 @@ thr_sig_invoke_handler(struct pthread *curthread, int sig, siginfo_t *info, (info == NULL)) (*(sigfunc))(sig, info, ucp); else - (*(sigfunc))(sig, (siginfo_t *)info->si_code, ucp); + (*(sigfunc))(sig, (siginfo_t*)(intptr_t)info->si_code, + ucp); } /*