From a80b7dc709ff03e569ef22e322925c93d3a415f5 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sun, 2 Sep 2012 16:03:37 -0700 Subject: Fix use of reinterpret_cast in to_mut_unsafe_ptr --- src/libcore/ptr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index 0117db25c58..68966d21984 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -146,7 +146,7 @@ fn to_unsafe_ptr(thing: &T) -> *T unsafe { */ #[inline(always)] fn to_mut_unsafe_ptr(thing: &mut T) -> *mut T unsafe { - unsafe::reinterpret_cast(thing) + unsafe::reinterpret_cast(&thing) } /** -- cgit 1.4.1-3-g733a5