diff options
-rw-r--r-- | bits/waitstatus.h | 2 | ||||
-rw-r--r-- | sysdeps/generic/bits/waitstatus.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bits/waitstatus.h b/bits/waitstatus.h index 98da41858e..699c224989 100644 --- a/bits/waitstatus.h +++ b/bits/waitstatus.h @@ -39,7 +39,7 @@ /* Nonzero if STATUS indicates termination by a signal. */ #define __WIFSIGNALED(status) \ - (((signed char) ((((((status) + 1) & 0xffff) - 1) & 0x7f) + 1) >> 1) > 0) + (((signed char) (((status) & 0x7f) + 1) >> 1) > 0) /* Nonzero if STATUS indicates the child is stopped. */ #define __WIFSTOPPED(status) (((status) & 0xff) == 0x7f) diff --git a/sysdeps/generic/bits/waitstatus.h b/sysdeps/generic/bits/waitstatus.h index 98da41858e..699c224989 100644 --- a/sysdeps/generic/bits/waitstatus.h +++ b/sysdeps/generic/bits/waitstatus.h @@ -39,7 +39,7 @@ /* Nonzero if STATUS indicates termination by a signal. */ #define __WIFSIGNALED(status) \ - (((signed char) ((((((status) + 1) & 0xffff) - 1) & 0x7f) + 1) >> 1) > 0) + (((signed char) (((status) & 0x7f) + 1) >> 1) > 0) /* Nonzero if STATUS indicates the child is stopped. */ #define __WIFSTOPPED(status) (((status) & 0xff) == 0x7f) |