diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-01-17 17:38:37 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-01-17 17:38:37 +0900 |
| commit | 5cd4ac861aa9128aaf80bc26391d975840fdc248 (patch) | |
| tree | 1e361ab2858d66f91f5c2b4a694f203d3a918db7 /src/jq/compile.zig | |
| parent | 3f1521b362458004fbb720822778cc473d33b9ef (diff) | |
| download | zgjq-5cd4ac861aa9128aaf80bc26391d975840fdc248.tar.gz zgjq-5cd4ac861aa9128aaf80bc26391d975840fdc248.tar.zst zgjq-5cd4ac861aa9128aaf80bc26391d975840fdc248.zip | |
refactor execute()
Diffstat (limited to 'src/jq/compile.zig')
| -rw-r--r-- | src/jq/compile.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jq/compile.zig b/src/jq/compile.zig index a28c10a..ddb4be5 100644 --- a/src/jq/compile.zig +++ b/src/jq/compile.zig @@ -19,7 +19,7 @@ pub const Instr = union(Opcode) { }; pub fn compile(allocator: std.mem.Allocator, compile_allocator: std.mem.Allocator, ast: *const Ast) ![]Instr { - var instrs = try std.array_list.Aligned(Instr, null).initCapacity(allocator, 16); + var instrs = try std.ArrayList(Instr).initCapacity(allocator, 16); switch (ast.*) { .identity => try instrs.append(allocator, .nop), |
