mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-11 00:00:23 +02:00
use raw ptr for potentially racy load (#240)
This commit is contained in:
+1
-1
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user