Move comptime out

This commit is contained in:
Koakuma 2020-08-29 22:11:48 +07:00
parent cefbe4e7be
commit 238f253de9

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() || comptime builtin.arch.isSPARC()) {
if (comptime (builtin.arch.isMIPS() || builtin.arch.isSPARC())) {
return syscall_pipe(fd);
} else if (@hasField(SYS, "pipe")) {
return syscall1(.pipe, @ptrToInt(fd));