aboutsummaryrefslogtreecommitdiff
path: root/std/os
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-08-29 16:52:31 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-08-29 16:52:31 -0400
commit816689a3b1c98ec008438e7f868e1a123889b2a7 (patch)
tree84dcf5e1cb51689543fea4c39b4c9f24dde681e9 /std/os
parentbe94299666e57486be6bdb8fee2b79dbf3623c5d (diff)
downloadzig-816689a3b1c98ec008438e7f868e1a123889b2a7.tar.gz
zig-816689a3b1c98ec008438e7f868e1a123889b2a7.zip
ptrCast gives compile error for increasing alignment
See #37
Diffstat (limited to 'std/os')
-rw-r--r--std/os/darwin.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/os/darwin.zig b/std/os/darwin.zig
index fcd356156e..8a034f966b 100644
--- a/std/os/darwin.zig
+++ b/std/os/darwin.zig
@@ -172,7 +172,7 @@ pub fn fork() -> usize {
pub fn pipe(fds: &[2]i32) -> usize {
comptime assert(i32.bit_count == c_int.bit_count);
- errnoWrap(c.pipe(@ptrCast(&c_int, &(*fds)[0])))
+ errnoWrap(c.pipe(@ptrCast(&c_int, fds)))
}
pub fn mkdir(path: &const u8, mode: u32) -> usize {