We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c26749c commit b5d8108Copy full SHA for b5d8108
library/std/src/sys/unix/locks/queue_rwlock.rs
@@ -341,7 +341,7 @@ impl RwLock {
341
node.tail.set((state.addr() & QUEUED == 0).then_some(NonNull::from(&node)));
342
343
let next = ptr::from_ref(&node)
344
- .map_addr(|addr| addr | QUEUED | state.addr() & LOCKED)
+ .map_addr(|addr| addr | QUEUED | (state.addr() & LOCKED))
345
as State;
346
// Use release ordering to propagate our changes to the waking
347
// thread.
0 commit comments