| ... | @@ -19,7 +19,7 @@ pub fn Int(comptime T: type) type { | ... | @@ -19,7 +19,7 @@ pub fn Int(comptime T: type) type { |
| 19 | | 19 | |
| 20 | /// Read, Modify, Write | 20 | /// Read, Modify, Write |
| 21 | pub fn rmw(self: *Self, comptime op: builtin.AtomicRmwOp, operand: T, comptime ordering: builtin.AtomicOrder) T { | 21 | pub fn rmw(self: *Self, comptime op: builtin.AtomicRmwOp, operand: T, comptime ordering: builtin.AtomicOrder) T { |
| 22 | return @atomicRmw(T, &self.unprotected_value, operand, ordering); | 22 | return @atomicRmw(T, &self.unprotected_value, op, operand, ordering); |
| 23 | } | 23 | } |
| 24 | | 24 | |
| 25 | pub fn load(self: *Self, comptime ordering: builtin.AtomicOrder) T { | 25 | pub fn load(self: *Self, comptime ordering: builtin.AtomicOrder) T { |