aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread.zig
diff options
context:
space:
mode:
authorXXIV <13811862+thechampagne@users.noreply.github.com>2023-10-31 07:17:39 +0300
committerGitHub <noreply@github.com>2023-10-31 00:17:39 -0400
commit34aac2bae145ae19fcbe36f794ee7054ea4de11f (patch)
tree707975178039248078dc8d41c2c458e0dd0d04e0 /lib/std/Thread.zig
parent825da34769784c7bdfa0d6be325c7299d992a951 (diff)
downloadzig-34aac2bae145ae19fcbe36f794ee7054ea4de11f.tar.gz
zig-34aac2bae145ae19fcbe36f794ee7054ea4de11f.zip
std/Thread: remove unnecessary `@ptrCast` (#17766)
Diffstat (limited to 'lib/std/Thread.zig')
-rw-r--r--lib/std/Thread.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Thread.zig b/lib/std/Thread.zig
index 5ede51022d..d3ace9e46a 100644
--- a/lib/std/Thread.zig
+++ b/lib/std/Thread.zig
@@ -552,7 +552,7 @@ const WindowsThreadImpl = struct {
null,
stack_size,
Instance.entryFn,
- @as(*anyopaque, @ptrCast(instance)),
+ instance,
0,
null,
) orelse {