mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
atomics wrap around on overflow
This commit is contained in:
+1
-1
@@ -134,7 +134,7 @@ fn call_intrinsic(
|
||||
"xsub" => mir::BinOp::Sub,
|
||||
_ => bug!(),
|
||||
};
|
||||
// FIXME: what do atomics do on overflow?
|
||||
// Atomics wrap around on overflow.
|
||||
self.binop_ignore_overflow(op, old, rhs, ptr.into())?;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user