From 2302eb3dcd25b33131677ab415111800e2eac362 Mon Sep 17 00:00:00 2001 From: Andreas Herrmann Date: Sat, 25 Nov 2023 12:39:04 +0100 Subject: [PATCH] Fix loop index capture --- zig/tests/integration_tests/integration_testing.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zig/tests/integration_tests/integration_testing.zig b/zig/tests/integration_tests/integration_testing.zig index 501271dd..869cd7cb 100644 --- a/zig/tests/integration_tests/integration_testing.zig +++ b/zig/tests/integration_tests/integration_testing.zig @@ -62,7 +62,7 @@ pub const BitContext = struct { var argv = try std.testing.allocator.alloc([]const u8, argc); defer std.testing.allocator.free(argv); argv[0] = self.bazel_path; - for (args.argv) |arg, i| { + for (args.argv, 0..) |arg, i| { argv[i + 1] = arg; } if (self.bzlmod_enabled and !args.omit_bzlmod_flag) {