aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/os.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os.zig b/src/os.zig
index 8f5aa38..2b9886f 100644
--- a/src/os.zig
+++ b/src/os.zig
@@ -20,6 +20,7 @@ fn autoCast(value: anytype) usize {
.Void => @compileError("cannot pass void to system call"),
.NoReturn => @compileError("cannot pass noreturn to system call"),
.Pointer => @intFromPtr(value),
+ .Bool => @intFromBool(value),
else => value,
};
}