1
0
Fork 0

Stack.top returns a mutable pointer, so it should take &mut self

This commit is contained in:
edef 2014-12-24 06:51:46 +01:00
parent e0f2d48196
commit 99db603d63
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ impl Stack {
}
}
pub fn top(&self) -> *mut u8 {
pub fn top(&mut self) -> *mut u8 {
unsafe {
match *self {
Stack::Native { .. } => ptr::null_mut(),