about summary refs log tree commit diff
path: root/src/libstd/rt/stack.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-08-08 22:22:52 -0700
committerAlex Crichton <alex@alexcrichton.com>2013-08-27 23:22:52 -0700
commite3662b188041b50c732896ded3de823144ae6556 (patch)
treeac34ea3fa87e2e884d01f3666b6be141c9fd2bb9 /src/libstd/rt/stack.rs
parent578e68047736167239c52fa1aba0347011ff1bc3 (diff)
downloadrust-e3662b188041b50c732896ded3de823144ae6556.tar.gz
rust-e3662b188041b50c732896ded3de823144ae6556.zip
Remove offset_inbounds for an unsafe offset function
Diffstat (limited to 'src/libstd/rt/stack.rs')
-rw-r--r--src/libstd/rt/stack.rs4
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
+        }
     }
 }