authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-02-14 23:38:14-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-02-14 23:38:14-05:00
log71d7100aa830652490d3995bf4e1319f31b5e647
treeff2d2740d61e34c063bf36825082cacb8b50d6c3
parente025c70166d96d7a75a5039415321745f51f1f58

darwin: fix pointer cast in mmap


1 files changed, 1 insertions(+), 1 deletions(-)

std/os/darwin.zig+1-1
...@@ -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 {
665665
666pub fn mmap(address: ?[*]u8, length: usize, prot: usize, flags: u32, fd: i32, offset: isize) usize {666pub 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)),