| author | |
| committer | |
| log | c021a445672fde506dbbcc331ca3b846f9b6e2a1 |
| tree | 14fe8304d98ddd81333eb85d8f08d641bff84309 |
| parent | 8be6c98ca63dac5cf5e769171bb72cd888efbbf4 |
1 files changed, 1 insertions(+), 1 deletions(-)
std/mem.zig+1-1| ... | ... | @@ -74,7 +74,7 @@ pub const Allocator = struct { |
| 74 | 74 | |
| 75 | 75 | pub fn alignedRealloc(self: *Allocator, comptime T: type, comptime alignment: u29, old_mem: []align(alignment) T, n: usize) ![]align(alignment) T { |
| 76 | 76 | if (old_mem.len == 0) { |
| 77 | return self.alloc(T, n); | |
| 77 | return self.alignedAlloc(T, alignment, n); | |
| 78 | 78 | } |
| 79 | 79 | if (n == 0) { |
| 80 | 80 | self.free(old_mem); |