Skip to content
Snippets Groups Projects
Commit 42b66969 authored by Ralf Jung's avatar Ralf Jung Committed by Carl Lerche
Browse files

use raw ptr for potentially racy load (#240)

parent 9504447a
No related branches found
No related tags found
No related merge requests found
......@@ -2467,7 +2467,7 @@ impl Inner {
// function.
let prev = unsafe {
let p: &AtomicPtr<Shared> = &self.arc;
let p: &usize = mem::transmute(p);
let p: *const usize = mem::transmute(p);
*p
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment