authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-08-31 19:19:35-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-09-01 17:54:07-07:00
log1a492d5156df400d33a00c5717e049e17f514153
tree45eb88a9bbe93fe8d4e6ccbf57286a766a822f73
parent5a4cc24c0eef08260e26c914828fc960aaa5631b

re-apply a commit dropped in this branch due to conflicts

This commit reapplies 4f0aa7d639e099b18df583cb984412037fbb1dbe.

3 files changed, 3 insertions(+), 3 deletions(-)

lib/std/c/dragonfly.zig+1-1
...@@ -204,7 +204,7 @@ pub const W = struct {...@@ -204,7 +204,7 @@ pub const W = struct {
204 return TERMSIG(s) == 0;204 return TERMSIG(s) == 0;
205 }205 }
206 pub fn IFSTOPPED(s: u32) bool {206 pub fn IFSTOPPED(s: u32) bool {
207 return @intCast(u16, (((s & 0xffff) *% 0x10001) >> 8)) > 0x7f00;207 return @truncate(u16, (((s & 0xffff) *% 0x10001) >> 8)) > 0x7f00;
208 }208 }
209 pub fn IFSIGNALED(s: u32) bool {209 pub fn IFSIGNALED(s: u32) bool {
210 return (s & 0xffff) -% 1 < 0xff;210 return (s & 0xffff) -% 1 < 0xff;
lib/std/c/freebsd.zig+1-1
...@@ -431,7 +431,7 @@ pub const W = struct {...@@ -431,7 +431,7 @@ pub const W = struct {
431 return TERMSIG(s) == 0;431 return TERMSIG(s) == 0;
432 }432 }
433 pub fn IFSTOPPED(s: u32) bool {433 pub fn IFSTOPPED(s: u32) bool {
434 return @intCast(u16, (((s & 0xffff) *% 0x10001) >> 8)) > 0x7f00;434 return @truncate(u16, (((s & 0xffff) *% 0x10001) >> 8)) > 0x7f00;
435 }435 }
436 pub fn IFSIGNALED(s: u32) bool {436 pub fn IFSIGNALED(s: u32) bool {
437 return (s & 0xffff) -% 1 < 0xff;437 return (s & 0xffff) -% 1 < 0xff;
lib/std/os/linux.zig+1-1
...@@ -1788,7 +1788,7 @@ pub const W = struct {...@@ -1788,7 +1788,7 @@ pub const W = struct {
1788 return TERMSIG(s) == 0;1788 return TERMSIG(s) == 0;
1789 }1789 }
1790 pub fn IFSTOPPED(s: u32) bool {1790 pub fn IFSTOPPED(s: u32) bool {
1791 return @intCast(u16, ((s & 0xffff) *% 0x10001) >> 8) > 0x7f00;1791 return @truncate(u16, ((s & 0xffff) *% 0x10001) >> 8) > 0x7f00;
1792 }1792 }
1793 pub fn IFSIGNALED(s: u32) bool {1793 pub fn IFSIGNALED(s: u32) bool {
1794 return (s & 0xffff) -% 1 < 0xff;1794 return (s & 0xffff) -% 1 < 0xff;