aboutsummaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-04-07 15:38:31 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-04-07 15:38:31 -0400
commit5eb78ba1772b54af1ecfb1cd28cb0f1c46dab9b3 (patch)
treec896d07d2ca8e06231c6efd96f02caeff6820660 /std
parentf7e9d7aa5d115a6a8158625cd1aceb7e8dafe880 (diff)
downloadzig-5eb78ba1772b54af1ecfb1cd28cb0f1c46dab9b3.tar.gz
zig-5eb78ba1772b54af1ecfb1cd28cb0f1c46dab9b3.zip
fix std.mem.IncrementingAllocator
updating ptr casting because of previous commit
Diffstat (limited to 'std')
-rw-r--r--std/mem.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/mem.zig b/std/mem.zig
index fb05eb5fd3..878a241195 100644
--- a/std/mem.zig
+++ b/std/mem.zig
@@ -63,7 +63,7 @@ pub const IncrementingAllocator = struct {
.reallocFn = realloc,
.freeFn = free,
},
- .bytes = (&u8)(addr)[0...capacity],
+ .bytes = @intToPtr(&u8, addr)[0...capacity],
.end_index = 0,
};
},