fix std.mem.IncrementingAllocator
updating ptr casting because of previous commitmaster
parent
f7e9d7aa5d
commit
5eb78ba177
|
@ -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,
|
||||
};
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue