author | Rich Felker <dalias@aerifal.cx> | 2023年01月18日 23:15:58 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2023年02月08日 16:42:28 -0500 |
commit | ea3b40a321e751e016948087ef23ae7b9e8e0150 (patch) | |
tree | f4c353f26002191d8cfdb80e77aa1491773f4622 /include/sys | |
parent | f897461d4fe72bb71854a6d0662de83008caccb7 (diff) | |
download | musl-ea3b40a321e751e016948087ef23ae7b9e8e0150.tar.gz |
-rw-r--r-- | include/sys/wait.h | 2 |
diff --git a/include/sys/wait.h b/include/sys/wait.h index d4b1f2e1..8ced671b 100644 --- a/include/sys/wait.h +++ b/include/sys/wait.h @@ -50,7 +50,7 @@ pid_t wait4 (pid_t, int *, int, struct rusage *); #define WSTOPSIG(s) WEXITSTATUS(s) #define WCOREDUMP(s) ((s) & 0x80) #define WIFEXITED(s) (!WTERMSIG(s)) -#define WIFSTOPPED(s) ((short)((((s)&0xffff)*0x10001)>>8) > 0x7f00) +#define WIFSTOPPED(s) ((short)((((s)&0xffff)*0x10001U)>>8) > 0x7f00) #define WIFSIGNALED(s) (((s)&0xffff)-1U < 0xffu) #define WIFCONTINUED(s) ((s) == 0xffff) |