diff options
Diffstat (limited to 'std/sort.zig')
| -rw-r--r-- | std/sort.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/sort.zig b/std/sort.zig index a36a5e1747..02cb9acb2e 100644 --- a/std/sort.zig +++ b/std/sort.zig @@ -1115,7 +1115,7 @@ var fixed_buffer_mem: [100 * 1024]u8 = undefined; fn fuzzTest(rng: &std.rand.Rand) { const array_size = rng.range(usize, 0, 1000); var fixed_allocator = mem.FixedBufferAllocator.init(fixed_buffer_mem[0..]); - var array = %%fixed_allocator.allocator.alloc(IdAndValue, array_size); + var array = fixed_allocator.allocator.alloc(IdAndValue, array_size) catch unreachable; // populate with random data for (array) |*item, index| { item.id = index; |
