summaryrefslogtreecommitdiff
path: root/src/signal/sigsetjmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/signal/sigsetjmp.c')
-rw-r--r--src/signal/sigsetjmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/signal/sigsetjmp.c b/src/signal/sigsetjmp.c
index a6667a27..5c937074 100644
--- a/src/signal/sigsetjmp.c
+++ b/src/signal/sigsetjmp.c
@@ -9,7 +9,7 @@
int sigsetjmp(sigjmp_buf buf, int save)
{
- long *flag = buf + sizeof(jmp_buf)/sizeof(long);
+ unsigned long *flag = buf + sizeof(jmp_buf)/sizeof(long);
sigset_t *mask = (void *)(flag + 1);
if ((*flag = save))
sigprocmask (SIG_SETMASK, NULL, mask);