| ... | ... | @@ -82,11 +82,11 @@ pub fn Atomic(comptime T: type) type { |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | pub inline fn store(self: *Self, value: T, comptime ordering: Ordering) void { |
| 85 | | return switch (ordering) { |
| 85 | switch (ordering) { |
| 86 | 86 | .AcqRel => @compileError(@tagName(ordering) ++ " implies " ++ @tagName(Ordering.Acquire) ++ " which is only allowed on atomic loads"), |
| 87 | 87 | .Acquire => @compileError(@tagName(ordering) ++ " is only allowed on atomic loads"), |
| 88 | 88 | else => @atomicStore(T, &self.value, value, ordering), |
| 89 | | }; |
| 89 | } |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | pub inline fn swap(self: *Self, value: T, comptime ordering: Ordering) T { |