Fix use of reinterpret_cast in to_mut_unsafe_ptr
This commit is contained in:
parent
512a769f6f
commit
a80b7dc709
@ -146,7 +146,7 @@ fn to_unsafe_ptr<T>(thing: &T) -> *T unsafe {
|
|||||||
*/
|
*/
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
fn to_mut_unsafe_ptr<T>(thing: &mut T) -> *mut T unsafe {
|
fn to_mut_unsafe_ptr<T>(thing: &mut T) -> *mut T unsafe {
|
||||||
unsafe::reinterpret_cast(thing)
|
unsafe::reinterpret_cast(&thing)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user