mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 12:59:04 +00:00
Fix boolean operator in if clause
This commit is contained in:
parent
73e62f22ec
commit
e7369ada93
@ -381,7 +381,7 @@ pub fn faccessat(dirfd: i32, path: [*:0]const u8, mode: u32, flags: u32) usize {
|
||||
}
|
||||
|
||||
pub fn pipe(fd: *[2]i32) usize {
|
||||
if (comptime (builtin.arch.isMIPS() || builtin.arch.isSPARC())) {
|
||||
if (comptime (builtin.arch.isMIPS() or builtin.arch.isSPARC())) {
|
||||
return syscall_pipe(fd);
|
||||
} else if (@hasField(SYS, "pipe")) {
|
||||
return syscall1(.pipe, @ptrToInt(fd));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user