From 08b2d491bcd8c79c68495267cc71967661caea1e Mon Sep 17 00:00:00 2001 From: Veikka Tuominen Date: Mon, 12 Dec 2022 15:32:37 +0200 Subject: update usages of `@call` --- lib/std/Thread.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/std/Thread.zig') diff --git a/lib/std/Thread.zig b/lib/std/Thread.zig index e2e17a2925..fc4f676a1f 100644 --- a/lib/std/Thread.zig +++ b/lib/std/Thread.zig @@ -387,10 +387,10 @@ fn callFn(comptime f: anytype, args: anytype) switch (Impl) { switch (@typeInfo(@typeInfo(@TypeOf(f)).Fn.return_type.?)) { .NoReturn => { - @call(.{}, f, args); + @call(.auto, f, args); }, .Void => { - @call(.{}, f, args); + @call(.auto, f, args); return default_value; }, .Int => |info| { @@ -398,7 +398,7 @@ fn callFn(comptime f: anytype, args: anytype) switch (Impl) { @compileError(bad_fn_ret); } - const status = @call(.{}, f, args); + const status = @call(.auto, f, args); if (Impl != PosixThreadImpl) { return status; } @@ -411,7 +411,7 @@ fn callFn(comptime f: anytype, args: anytype) switch (Impl) { @compileError(bad_fn_ret); } - @call(.{}, f, args) catch |err| { + @call(.auto, f, args) catch |err| { std.debug.print("error: {s}\n", .{@errorName(err)}); if (@errorReturnTrace()) |trace| { std.debug.dumpStackTrace(trace.*); -- cgit v1.2.3