| author | |
| committer | |
| log | b197c4d79b2bf1ef64a7be0b81eb47e225a323ff |
| tree | 2d77ed1b09739f2ed443a1c9c9f9ad80df5a4204 |
| parent | 5bd27a2cb6ead1108e2e177f4e2730f31224925c |
| signature |
1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/atomic/Atomic.zig+1-1| ... | ... | @@ -46,7 +46,7 @@ pub fn Atomic(comptime T: type) type { |
| 46 | 46 | extern "c" fn __tsan_release(addr: *anyopaque) void; |
| 47 | 47 | }; |
| 48 | 48 | |
| 49 | const addr = @as(*anyopaque, @ptrCast(self)); | |
| 49 | const addr: *anyopaque = self; | |
| 50 | 50 | return switch (ordering) { |
| 51 | 51 | .Unordered, .Monotonic => @compileError(@tagName(ordering) ++ " only applies to atomic loads and stores"), |
| 52 | 52 | .Acquire => tsan.__tsan_acquire(addr), |