Fix boolean operator in if clause

This commit is contained in:
Koakuma 2020-10-24 21:33:40 +07:00
parent 73e62f22ec
commit e7369ada93

View File

@ -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));