diff options
Diffstat (limited to 'src/libstd/rt/stack.rs')
| -rw-r--r-- | src/libstd/rt/stack.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/rt/stack.rs b/src/libstd/rt/stack.rs index 4358390da9f..44b60e955d2 100644 --- a/src/libstd/rt/stack.rs +++ b/src/libstd/rt/stack.rs @@ -24,7 +24,7 @@ impl StackSegment { unsafe { // Crate a block of uninitialized values let mut stack = vec::with_capacity(size); - vec::raw::set_len(&mut stack, size); + stack.set_len(size); let mut stk = StackSegment { buf: stack, @@ -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 } } } |
