From 5cd4ac861aa9128aaf80bc26391d975840fdc248 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 17 Jan 2026 17:38:37 +0900 Subject: refactor execute() --- src/jq/compile.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/jq/compile.zig') 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), -- cgit v1.3-1-g0d28