diff options
| author | daurnimator <quae@daurnimator.com> | 2020-11-19 00:57:35 +1100 |
|---|---|---|
| committer | daurnimator <quae@daurnimator.com> | 2020-11-19 00:57:35 +1100 |
| commit | 8fa29bc0a235fb123c02e89936d0699906831a37 (patch) | |
| tree | 6fa22be86cad4c3ace5274bcfbada33f17182178 | |
| parent | eb4d93ece3f9fb218a644e32823fb0052fe22653 (diff) | |
| download | zig-8fa29bc0a235fb123c02e89936d0699906831a37.tar.gz zig-8fa29bc0a235fb123c02e89936d0699906831a37.zip | |
std: fix missing operation argument to @atomicRmw
| -rw-r--r-- | lib/std/atomic/int.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/atomic/int.zig b/lib/std/atomic/int.zig index 7811ed71c7..5e58e17abb 100644 --- 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 { |
