mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
std: fix missing operation argument to @atomicRmw
This commit is contained in:
parent
eb4d93ece3
commit
8fa29bc0a2
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user