mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 05:48:31 +00:00
Fix compile error on windows
This commit is contained in:
parent
49128c86f8
commit
947abb7626
@ -1860,7 +1860,7 @@ fn run_lock_file_test(contexts: []FileLockTestContext) !void {
|
||||
}
|
||||
|
||||
if (builtin.os.tag == .windows) {
|
||||
const threads = std.ArrayList(*std.Thread).init(testing.allocator);
|
||||
var threads = std.ArrayList(*std.Thread).init(std.testing.allocator);
|
||||
defer {
|
||||
for (threads.toSlice()) |thread| {
|
||||
thread.wait();
|
||||
@ -1868,7 +1868,7 @@ fn run_lock_file_test(contexts: []FileLockTestContext) !void {
|
||||
threads.deinit();
|
||||
}
|
||||
for (ctxs) |*ctx, idx| {
|
||||
threads.append(try std.Thread.spawn(ctx, Context.run));
|
||||
try threads.append(try std.Thread.spawn(ctx, FileLockTestContext.run));
|
||||
}
|
||||
} else {
|
||||
var ctx_opt: ?*FileLockTestContext = null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user