diff options
| author | Maya Rashish <maya@NetBSD.org> | 2019-02-17 08:34:20 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-02-17 02:25:37 -0500 |
| commit | 8d2a902945ef97f28152c3d5a68bb974809c8539 (patch) | |
| tree | 0f51f6c2ff84dde51b61bba6799e5c5abccf91b4 /std | |
| parent | db9c1b0528f1fbaa8e6ad2002aaa377c9127f6b3 (diff) | |
| download | zig-8d2a902945ef97f28152c3d5a68bb974809c8539.tar.gz zig-8d2a902945ef97f28152c3d5a68bb974809c8539.zip | |
freebsd: fix pointer cast in mmap
Diffstat (limited to 'std')
| -rw-r--r-- | std/os/freebsd/index.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/os/freebsd/index.zig b/std/os/freebsd/index.zig index a3ab5e7749..48c0ea5b1e 100644 --- a/std/os/freebsd/index.zig +++ b/std/os/freebsd/index.zig @@ -617,7 +617,7 @@ pub fn mkdir(path: [*]const u8, mode: u32) 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)), |
