Commit 5eb78ba177

Andrew Kelley <superjoe30@gmail.com>
2017-04-07 21:38:31
fix std.mem.IncrementingAllocator
updating ptr casting because of previous commit
1 parent f7e9d7a
Changed files (1)
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,
                 };
             },