]> granicus.if.org Git - musl/commitdiff
fix generic sigsetjmp (unused anyway) pointer signedness error
authorRich Felker <dalias@aerifal.cx>
Fri, 16 Sep 2011 16:44:39 +0000 (12:44 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 16 Sep 2011 16:44:39 +0000 (12:44 -0400)
src/signal/sigsetjmp.c

index a6667a27964f39a321cc1ba78b2923e3d24d47b5..5c9370740e43e57c5c1997ee6a8ed34bbcec6d58 100644 (file)
@@ -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);