std: fix missing operation argument to @atomicRmw

This commit is contained in:
daurnimator 2020-11-19 00:57:35 +11:00
parent eb4d93ece3
commit 8fa29bc0a2
No known key found for this signature in database
GPG Key ID: 45B429A8F9D9D22A

View File

@ -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 {