| ... | @@ -665,7 +665,7 @@ pub fn pwrite(fd: i32, buf: [*]const u8, nbyte: usize, offset: u64) usize { | ... | @@ -665,7 +665,7 @@ pub fn pwrite(fd: i32, buf: [*]const u8, nbyte: usize, offset: u64) usize { |
| 665 | | 665 | |
| 666 | pub fn mmap(address: ?[*]u8, length: usize, prot: usize, flags: u32, fd: i32, offset: isize) usize { | 666 | pub fn mmap(address: ?[*]u8, length: usize, prot: usize, flags: u32, fd: i32, offset: isize) usize { |
| 667 | const ptr_result = c.mmap( | 667 | const ptr_result = c.mmap( |
| 668 | @ptrCast(*c_void, address), | 668 | @ptrCast(?*c_void, address), |
| 669 | length, | 669 | length, |
| 670 | @bitCast(c_int, @intCast(c_uint, prot)), | 670 | @bitCast(c_int, @intCast(c_uint, prot)), |
| 671 | @bitCast(c_int, c_uint(flags)), | 671 | @bitCast(c_int, c_uint(flags)), |