commit 9ff9ea38ea2a7dc776bb2954d31109ec1c81d191 (tree) parent c1c9bc0c41eb8956b2fe0b21e2443c6504e73234 Author: XXIV <13811862+thechampagne@users.noreply.github.com> Date: Sat, 28 Oct 2023 09:27:58 +0300 compiler_rt/emutls: remove unnecessary `@ptrCast` (#17755) Diffstat:
| M | lib/compiler_rt/emutls.zig | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/compiler_rt/emutls.zig b/lib/compiler_rt/emutls.zig @@ -138,7 +138,7 @@ const ObjectArray = struct { @memset(data[0..size], 0); } - self.slots[index] = @ptrCast(data); + self.slots[index] = data; } return self.slots[index].?;