aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/std/os.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/os.zig b/lib/std/os.zig
index f133ee4bdf..8c3ea7baa8 100644
--- a/lib/std/os.zig
+++ b/lib/std/os.zig
@@ -3780,7 +3780,7 @@ pub fn pipe2(flags: u32) PipeError![2]fd_t {
// F_SETFD.
if (flags & O_CLOEXEC != 0) {
for (fds) |fd| {
- switch (errno(system.fcntl(fd, F_SETFD, FD_CLOEXEC))) {
+ switch (errno(system.fcntl(fd, F_SETFD, @as(u32, FD_CLOEXEC)))) {
0 => {},
EINVAL => unreachable, // Invalid flags
EBADF => unreachable, // Always a race condition