diff options
| author | Benjamin Feng <benjamin.feng@glassdoor.com> | 2020-01-29 22:06:26 -0600 |
|---|---|---|
| committer | Benjamin Feng <benjamin.feng@glassdoor.com> | 2020-01-29 22:22:01 -0600 |
| commit | b7a236d68e042ffcf2b0642e951ecca33ed842a4 (patch) | |
| tree | 82e7b1f9602039be4ca878e95b74e74f7bc8900f /lib/std/packed_int_array.zig | |
| parent | ad93ad3e6077cdaa7111c7aefbfb1305ae3edfb5 (diff) | |
| download | zig-b7a236d68e042ffcf2b0642e951ecca33ed842a4.tar.gz zig-b7a236d68e042ffcf2b0642e951ecca33ed842a4.zip | |
Convert a bunch of page_allocator to testing.allocator
Diffstat (limited to 'lib/std/packed_int_array.zig')
| -rw-r--r-- | lib/std/packed_int_array.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/packed_int_array.zig b/lib/std/packed_int_array.zig index bc29e985b5..3dfa55e74b 100644 --- a/lib/std/packed_int_array.zig +++ b/lib/std/packed_int_array.zig @@ -604,7 +604,7 @@ test "PackedIntArray at end of available memory" { p: PackedArray, }; - const allocator = std.heap.page_allocator; + const allocator = std.testing.allocator; var pad = try allocator.create(Padded); defer allocator.destroy(pad); @@ -618,7 +618,7 @@ test "PackedIntSlice at end of available memory" { } const PackedSlice = PackedIntSlice(u11); - const allocator = std.heap.page_allocator; + const allocator = std.testing.allocator; var page = try allocator.alloc(u8, std.mem.page_size); defer allocator.free(page); |
