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 {
204204 return TERMSIG(s) == 0;
205205 }
206206 pub fn IFSTOPPED(s: u32) bool {
207 return @intCast(u16, (((s & 0xffff) *% 0x10001) >> 8)) > 0x7f00;
207 return @truncate(u16, (((s & 0xffff) *% 0x10001) >> 8)) > 0x7f00;
208208 }
209209 pub fn IFSIGNALED(s: u32) bool {
210210 return (s & 0xffff) -% 1 < 0xff;
lib/std/c/freebsd.zig+1-1
......@@ -431,7 +431,7 @@ pub const W = struct {
431431 return TERMSIG(s) == 0;
432432 }
433433 pub fn IFSTOPPED(s: u32) bool {
434 return @intCast(u16, (((s & 0xffff) *% 0x10001) >> 8)) > 0x7f00;
434 return @truncate(u16, (((s & 0xffff) *% 0x10001) >> 8)) > 0x7f00;
435435 }
436436 pub fn IFSIGNALED(s: u32) bool {
437437 return (s & 0xffff) -% 1 < 0xff;
lib/std/os/linux.zig+1-1
......@@ -1788,7 +1788,7 @@ pub const W = struct {
17881788 return TERMSIG(s) == 0;
17891789 }
17901790 pub fn IFSTOPPED(s: u32) bool {
1791 return @intCast(u16, ((s & 0xffff) *% 0x10001) >> 8) > 0x7f00;
1791 return @truncate(u16, ((s & 0xffff) *% 0x10001) >> 8) > 0x7f00;
17921792 }
17931793 pub fn IFSIGNALED(s: u32) bool {
17941794 return (s & 0xffff) -% 1 < 0xff;