| ... | ... | @@ -49,9 +49,8 @@ pub const ArenaAllocator = struct { |
| 49 | 49 | const actual_min_size = minimum_size + (@sizeOf(BufNode) + 16); |
| 50 | 50 | const big_enough_len = prev_len + actual_min_size; |
| 51 | 51 | const len = big_enough_len + big_enough_len / 2; |
| 52 | | const buf = try self.child_allocator.alignedAlloc(u8, @alignOf(BufNode), len); |
| 53 | | const buf_node_slice = mem.bytesAsSlice(BufNode, buf[0..@sizeOf(BufNode)]); |
| 54 | | const buf_node = &buf_node_slice[0]; |
| 52 | const buf = try self.child_allocator.callAllocFn(len, @alignOf(BufNode), 1); |
| 53 | const buf_node = @ptrCast(*BufNode, @alignCast(@alignOf(BufNode), buf.ptr)); |
| 55 | 54 | buf_node.* = BufNode{ |
| 56 | 55 | .data = buf, |
| 57 | 56 | .next = null, |