mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
darwin: fix pointer cast in mmap
This commit is contained in:
parent
e025c70166
commit
71d7100aa8
@ -665,7 +665,7 @@ pub fn pwrite(fd: i32, buf: [*]const u8, nbyte: usize, offset: u64) usize {
|
||||
|
||||
pub fn mmap(address: ?[*]u8, length: usize, prot: usize, flags: u32, fd: i32, offset: isize) usize {
|
||||
const ptr_result = c.mmap(
|
||||
@ptrCast(*c_void, address),
|
||||
@ptrCast(?*c_void, address),
|
||||
length,
|
||||
@bitCast(c_int, @intCast(c_uint, prot)),
|
||||
@bitCast(c_int, c_uint(flags)),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user