From 1a492d5156df400d33a00c5717e049e17f514153 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 31 Aug 2021 19:19:35 -0700 Subject: [PATCH] re-apply a commit dropped in this branch due to conflicts This commit reapplies 4f0aa7d639e099b18df583cb984412037fbb1dbe. --- lib/std/c/dragonfly.zig | 2 +- lib/std/c/freebsd.zig | 2 +- lib/std/os/linux.zig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/std/c/dragonfly.zig b/lib/std/c/dragonfly.zig index ca9a8b847f6581d4b00b56141d4a0d381cdf33dd..82e50a500231f06335071d228a49e45afb11bdab 100644 --- a/lib/std/c/dragonfly.zig +++ b/lib/std/c/dragonfly.zig @@ -204,7 +204,7 @@ pub const W = struct { return TERMSIG(s) == 0; } pub fn IFSTOPPED(s: u32) bool { - return @intCast(u16, (((s & 0xffff) *% 0x10001) >> 8)) > 0x7f00; + return @truncate(u16, (((s & 0xffff) *% 0x10001) >> 8)) > 0x7f00; } pub fn IFSIGNALED(s: u32) bool { return (s & 0xffff) -% 1 < 0xff; diff --git a/lib/std/c/freebsd.zig b/lib/std/c/freebsd.zig index 1d0812ccd4a6a1669abb6a69e36d5948c258d3cb..f65af3f915a8f7cda41310c05f8ae1949994de94 100644 --- a/lib/std/c/freebsd.zig +++ b/lib/std/c/freebsd.zig @@ -431,7 +431,7 @@ pub const W = struct { return TERMSIG(s) == 0; } pub fn IFSTOPPED(s: u32) bool { - return @intCast(u16, (((s & 0xffff) *% 0x10001) >> 8)) > 0x7f00; + return @truncate(u16, (((s & 0xffff) *% 0x10001) >> 8)) > 0x7f00; } pub fn IFSIGNALED(s: u32) bool { return (s & 0xffff) -% 1 < 0xff; diff --git a/lib/std/os/linux.zig b/lib/std/os/linux.zig index adce478cb878bb90b96963886b1676c0b1374ab3..c4309e288d162ca76b6a640917869fceb9dce186 100644 --- a/lib/std/os/linux.zig +++ b/lib/std/os/linux.zig @@ -1788,7 +1788,7 @@ pub const W = struct { return TERMSIG(s) == 0; } pub fn IFSTOPPED(s: u32) bool { - return @intCast(u16, ((s & 0xffff) *% 0x10001) >> 8) > 0x7f00; + return @truncate(u16, ((s & 0xffff) *% 0x10001) >> 8) > 0x7f00; } pub fn IFSIGNALED(s: u32) bool { return (s & 0xffff) -% 1 < 0xff; -- 2.54.0