parent
760942d7d2
commit
248cb90dfa
2 changed files with 3 additions and 3 deletions
|
@ -1527,7 +1527,7 @@ impl<T> OwnedVector<T> for ~[T] {
|
|||
let valptr = ptr::to_mut_unsafe_ptr(&mut self[ln - 1u]);
|
||||
unsafe {
|
||||
raw::set_len(self, ln - 1u);
|
||||
Some(ptr::read_ptr(valptr))
|
||||
Some(ptr::read_ptr(&*valptr))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue