forked from M-Labs/libfringe
Stack.top returns a mutable pointer, so it should take &mut self
This commit is contained in:
parent
e0f2d48196
commit
99db603d63
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue