| ... | ... | @@ -226,9 +226,7 @@ pub fn get_errno(r: isize) -> isize { |
| 226 | 226 | } |
| 227 | 227 | |
| 228 | 228 | pub fn mmap(address: ?&u8, length: isize, prot: isize, flags: isize, fd: isize, offset: isize) -> isize { |
| 229 | | // TODO ability to cast maybe pointer to isize |
| 230 | | const addr = if (const unwrapped ?= address) isize(unwrapped) else 0; |
| 231 | | arch.syscall6(arch.SYS_mmap, addr, length, prot, flags, fd, offset) |
| 229 | arch.syscall6(arch.SYS_mmap, isize(address), length, prot, flags, fd, offset) |
| 232 | 230 | } |
| 233 | 231 | |
| 234 | 232 | pub fn munmap(address: &u8, length: isize) -> isize { |