From 8fa29bc0a235fb123c02e89936d0699906831a37 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Thu, 19 Nov 2020 00:57:35 +1100 Subject: [PATCH] std: fix missing operation argument to @atomicRmw --- lib/std/atomic/int.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {