diff options
Diffstat (limited to 'src/libstd/rt/stack.rs')
| -rw-r--r-- | src/libstd/rt/stack.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstd/rt/stack.rs b/src/libstd/rt/stack.rs index 4b2a9b7a6cc..da70659acec 100644 --- a/src/libstd/rt/stack.rs +++ b/src/libstd/rt/stack.rs @@ -46,7 +46,9 @@ impl StackSegment { /// Point one word beyond the high end of the allocated stack pub fn end(&self) -> *uint { - vec::raw::to_ptr(self.buf).offset(self.buf.len() as int) as *uint + unsafe { + vec::raw::to_ptr(self.buf).offset(self.buf.len() as int) as *uint + } } } |
