提交 5b91c223 编写于 作者: R Rich Felker

fix generic sigsetjmp (unused anyway) pointer signedness error

上级 144c951b
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
int sigsetjmp(sigjmp_buf buf, int save) 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); sigset_t *mask = (void *)(flag + 1);
if ((*flag = save)) if ((*flag = save))
sigprocmask (SIG_SETMASK, NULL, mask); sigprocmask (SIG_SETMASK, NULL, mask);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册