diff options
author | Roland McGrath <roland@gnu.org> | 2004-09-28 01:58:03 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2004-09-28 01:58:03 +0000 |
commit | f26e84d344497de9960ea4eb52ccb16979440923 (patch) | |
tree | c6eab2754367199653b782a5bf729c19ed384011 /sysdeps/generic | |
parent | 357420c512f4c4d1a73e5ce2b680fcc59c8c468b (diff) | |
download | glibc-f26e84d344497de9960ea4eb52ccb16979440923.tar.gz |
2004-09-27 Roland McGrath <roland@redhat.com>
* sysdeps/generic/bits/waitstatus.h (__WIFSIGNALED): Simplify bit
twiddling in last change.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r-- | sysdeps/generic/bits/waitstatus.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) |