| ... | @@ -46,7 +46,7 @@ pub fn Atomic(comptime T: type) type { | ... | @@ -46,7 +46,7 @@ pub fn Atomic(comptime T: type) type { |
| 46 | extern "c" fn __tsan_release(addr: *anyopaque) void; | 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 | return switch (ordering) { | 50 | return switch (ordering) { |
| 51 | .Unordered, .Monotonic => @compileError(@tagName(ordering) ++ " only applies to atomic loads and stores"), | 51 | .Unordered, .Monotonic => @compileError(@tagName(ordering) ++ " only applies to atomic loads and stores"), |
| 52 | .Acquire => tsan.__tsan_acquire(addr), | 52 | .Acquire => tsan.__tsan_acquire(addr), |