commit 8fa29bc0a235fb123c02e89936d0699906831a37 (tree)
parent eb4d93ece3f9fb218a644e32823fb0052fe22653
Author: daurnimator <quae@daurnimator.com>
Date: Thu, 19 Nov 2020 00:57:35 +1100
std: fix missing operation argument to @atomicRmw
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/atomic/int.zig b/lib/std/atomic/int.zig
@@ -19,7 +19,7 @@ pub fn Int(comptime T: type) type {
/// Read, Modify, Write
pub fn rmw(self: *Self, comptime op: builtin.AtomicRmwOp, operand: T, comptime ordering: builtin.AtomicOrder) T {
- return @atomicRmw(T, &self.unprotected_value, operand, ordering);
+ return @atomicRmw(T, &self.unprotected_value, op, operand, ordering);
}
pub fn load(self: *Self, comptime ordering: builtin.AtomicOrder) T {