| ... | ... | @@ -1109,7 +1109,8 @@ test "shrink large object to large object with larger alignment" { |
| 1109 | 1109 | const allocator = gpa.allocator(); |
| 1110 | 1110 | |
| 1111 | 1111 | var debug_buffer: [1000]u8 = undefined; |
| 1112 | | const debug_allocator = std.heap.FixedBufferAllocator.init(&debug_buffer).allocator(); |
| 1112 | var fba = std.heap.FixedBufferAllocator.init(&debug_buffer); |
| 1113 | const debug_allocator = fba.allocator(); |
| 1113 | 1114 | |
| 1114 | 1115 | const alloc_size = page_size * 2 + 50; |
| 1115 | 1116 | var slice = try allocator.alignedAlloc(u8, 16, alloc_size); |
| ... | ... | @@ -1180,7 +1181,8 @@ test "realloc large object to larger alignment" { |
| 1180 | 1181 | const allocator = gpa.allocator(); |
| 1181 | 1182 | |
| 1182 | 1183 | var debug_buffer: [1000]u8 = undefined; |
| 1183 | | const debug_allocator = std.heap.FixedBufferAllocator.init(&debug_buffer).allocator(); |
| 1184 | var fba = std.heap.FixedBufferAllocator.init(&debug_buffer); |
| 1185 | const debug_allocator = fba.allocator(); |
| 1184 | 1186 | |
| 1185 | 1187 | var slice = try allocator.alignedAlloc(u8, 16, page_size * 2 + 50); |
| 1186 | 1188 | defer allocator.free(slice); |