aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2022-12-12 15:32:37 +0200
committerVeikka Tuominen <git@vexu.eu>2022-12-13 13:14:20 +0200
commit08b2d491bcd8c79c68495267cc71967661caea1e (patch)
treef6c8436094170f3dd197ffec479aec575c875d19 /lib/std/Thread.zig
parent7b2a936173165002105ba5e76bed69654e132fea (diff)
downloadzig-08b2d491bcd8c79c68495267cc71967661caea1e.tar.gz
zig-08b2d491bcd8c79c68495267cc71967661caea1e.zip
update usages of `@call`
Diffstat (limited to 'lib/std/Thread.zig')
-rw-r--r--lib/std/Thread.zig8
1 files changed, 4 insertions, 4 deletions
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.*);