std: fix fn return syntax for zen os

This commit is contained in:
Andrew Kelley 2018-01-29 10:57:27 -05:00
parent abe6c2d585
commit 2b5e0b66a2

View File

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