diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-11-30 18:48:31 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-30 18:48:31 -0800 |
| commit | 7355a201336c8e3892427e5932fe5cdd46cf96df (patch) | |
| tree | 4ccec922634586847d02f2324d0db75f25200188 /test/cli.zig | |
| parent | dd62a6d2e8de522187fd096354e7156cca1821c5 (diff) | |
| parent | 066eaa5e9cbfde172449f6d95bb884c7d86ac10c (diff) | |
| download | zig-7355a201336c8e3892427e5932fe5cdd46cf96df.tar.gz zig-7355a201336c8e3892427e5932fe5cdd46cf96df.zip | |
Merge pull request #10055 from leecannon/allocator_refactor
Allocgate
Diffstat (limited to 'test/cli.zig')
| -rw-r--r-- | test/cli.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cli.zig b/test/cli.zig index 837aef4229..d4afe417ce 100644 --- a/test/cli.zig +++ b/test/cli.zig @@ -5,7 +5,7 @@ const process = std.process; const fs = std.fs; const ChildProcess = std.ChildProcess; -var a: *std.mem.Allocator = undefined; +var a: std.mem.Allocator = undefined; pub fn main() !void { var arena = std.heap.ArenaAllocator.init(std.testing.allocator); @@ -16,7 +16,7 @@ pub fn main() !void { // skip my own exe name _ = arg_it.skip(); - a = &arena.allocator; + a = arena.allocator(); const zig_exe_rel = try (arg_it.next(a) orelse { std.debug.print("Expected first argument to be path to zig compiler\n", .{}); |
