authorgravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2020-11-19 00:57:35+11:00
committergravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2020-11-19 00:57:35+11:00
log8fa29bc0a235fb123c02e89936d0699906831a37
tree6fa22be86cad4c3ace5274bcfbada33f17182178
parenteb4d93ece3f9fb218a644e32823fb0052fe22653
signaturelock-open Commit is signed but in an unrecognized format.

std: fix missing operation argument to @atomicRmw


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/atomic/int.zig+1-1
......@@ -19,7 +19,7 @@ pub fn Int(comptime T: type) type {
1919
2020 /// Read, Modify, Write
2121 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);
2323 }
2424
2525 pub fn load(self: *Self, comptime ordering: builtin.AtomicOrder) T {