commit 2b5e0b66a27d2a83cb596a28c9792a86523401b3 (tree)
parent abe6c2d5859461900e0ceeb98800987413b3355a
Author: Andrew Kelley <superjoe30@gmail.com>
Date: Mon, 29 Jan 2018 10:57:27 -0500
std: fix fn return syntax for zen os
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/std/os/zen.zig b/std/os/zen.zig
@@ -42,7 +42,7 @@ pub fn map(v_addr: usize, p_addr: usize, size: usize, writable: bool) bool {
return syscall4(SYS_map, v_addr, p_addr, size, usize(writable)) != 0;
}
-pub fn createThread(function: fn()) u16 {
+pub fn createThread(function: fn()void) u16 {
return u16(syscall1(SYS_createThread, @ptrToInt(function)));
}