authorgravatar for leroycepearson@geemili.xyzLeRoyce Pearson <leroycepearson@geemili.xyz> 2020-03-14 17:13:46-06:00
committergravatar for leroycepearson@geemili.xyzLeRoyce Pearson <leroycepearson@geemili.xyz> 2020-03-14 17:13:46-06:00
log947abb7626cae990c407d347f62a625001c17cdf
tree534257a892739483373db19a1e6f8f2aae82d4bd
parent49128c86f8eb6cc42f55b6a7a9d0aa66d222b1a6

Fix compile error on windows


1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/fs.zig+2-2
...@@ -1860,7 +1860,7 @@ fn run_lock_file_test(contexts: []FileLockTestContext) !void {...@@ -1860,7 +1860,7 @@ fn run_lock_file_test(contexts: []FileLockTestContext) !void {
1860 }1860 }
18611861
1862 if (builtin.os.tag == .windows) {1862 if (builtin.os.tag == .windows) {
1863 const threads = std.ArrayList(*std.Thread).init(testing.allocator);1863 var threads = std.ArrayList(*std.Thread).init(std.testing.allocator);
1864 defer {1864 defer {
1865 for (threads.toSlice()) |thread| {1865 for (threads.toSlice()) |thread| {
1866 thread.wait();1866 thread.wait();
...@@ -1868,7 +1868,7 @@ fn run_lock_file_test(contexts: []FileLockTestContext) !void {...@@ -1868,7 +1868,7 @@ fn run_lock_file_test(contexts: []FileLockTestContext) !void {
1868 threads.deinit();1868 threads.deinit();
1869 }1869 }
1870 for (ctxs) |*ctx, idx| {1870 for (ctxs) |*ctx, idx| {
1871 threads.append(try std.Thread.spawn(ctx, Context.run));1871 try threads.append(try std.Thread.spawn(ctx, FileLockTestContext.run));
1872 }1872 }
1873 } else {1873 } else {
1874 var ctx_opt: ?*FileLockTestContext = null;1874 var ctx_opt: ?*FileLockTestContext = null;