fix std.mem.IncrementingAllocator

updating ptr casting because of previous commit
master
Andrew Kelley 2017-04-07 15:38:31 -04:00
parent f7e9d7aa5d
commit 5eb78ba177
1 changed files with 1 additions and 1 deletions

View File

@ -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,
};
},