Fix use of reinterpret_cast in to_mut_unsafe_ptr

This commit is contained in:
Brian Anderson 2012-09-02 16:03:37 -07:00
parent 512a769f6f
commit a80b7dc709

View File

@ -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)
} }
/** /**