diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-03-25 16:04:25 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-03-25 16:04:25 -0400 |
| commit | 1d09cdaa6a79e0f0baa24d95c7fa992829cd455f (patch) | |
| tree | e8738804db9ba53b29d81be2681e2aa1e9107223 /std/os/darwin.zig | |
| parent | 5eaead6a56ed95c200e249737c4ecf3c7cacf794 (diff) | |
| download | zig-1d09cdaa6a79e0f0baa24d95c7fa992829cd455f.tar.gz zig-1d09cdaa6a79e0f0baa24d95c7fa992829cd455f.zip | |
munmap allows address 0
fixes test suite regression on macOS from previous commit
Diffstat (limited to 'std/os/darwin.zig')
| -rw-r--r-- | std/os/darwin.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/os/darwin.zig b/std/os/darwin.zig index 4ce631c6ab..9dc1ce1173 100644 --- a/std/os/darwin.zig +++ b/std/os/darwin.zig @@ -677,7 +677,7 @@ pub fn mmap(address: ?[*]u8, length: usize, prot: usize, flags: u32, fd: i32, of } pub fn munmap(address: usize, length: usize) usize { - return errnoWrap(c.munmap(@intToPtr(*c_void, address), length)); + return errnoWrap(c.munmap(@intToPtr(?*c_void, address), length)); } pub fn unlink(path: [*]const u8) usize { |
