about summary refs log tree commit diff
path: root/src/libstd/rt/stack.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/rt/stack.rs')
-rw-r--r--src/libstd/rt/stack.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/rt/stack.rs b/src/libstd/rt/stack.rs
index 4b3236b76bf..44b60e955d2 100644
--- a/src/libstd/rt/stack.rs
+++ b/src/libstd/rt/stack.rs
@@ -39,13 +39,13 @@ impl StackSegment {
 
     /// Point to the low end of the allocated stack
     pub fn start(&self) -> *uint {
-        vec::raw::to_ptr(self.buf) as *uint
+        self.buf.as_ptr() as *uint
     }
 
     /// Point one word beyond the high end of the allocated stack
     pub fn end(&self) -> *uint {
         unsafe {
-            vec::raw::to_ptr(self.buf).offset(self.buf.len() as int) as *uint
+            self.buf.as_ptr().offset(self.buf.len() as int) as *uint
         }
     }
 }