diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-08-08 22:22:52 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-08-27 23:22:52 -0700 |
| commit | e3662b188041b50c732896ded3de823144ae6556 (patch) | |
| tree | ac34ea3fa87e2e884d01f3666b6be141c9fd2bb9 /src/libstd/rt/stack.rs | |
| parent | 578e68047736167239c52fa1aba0347011ff1bc3 (diff) | |
| download | rust-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.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 + } } } |
