about summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-08-28 11:00:41 -0700
committerbors <bors@rust-lang.org>2013-08-28 11:00:41 -0700
commit64ed3721f74c699d931e1d5ccf41d5db7cea0218 (patch)
treeace0551feb3ef6398fcc787e621f027c00efea03 /src/libstd/rt
parent9708ef03a6c9d52daf424c933428ccdfc4e29a56 (diff)
parente3662b188041b50c732896ded3de823144ae6556 (diff)
downloadrust-64ed3721f74c699d931e1d5ccf41d5db7cea0218.tar.gz
rust-64ed3721f74c699d931e1d5ccf41d5db7cea0218.zip
auto merge of #8807 : alexcrichton/rust/remove-two-offsets, r=thestinger
Everything that we do is actually inbounds, so there's no reason for us to be exposing two of these functions
Diffstat (limited to 'src/libstd/rt')
-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
+        }
     }
 }