Flush when pop f64
This commit is contained in:
parent
d839700437
commit
3fea650fed
@ -398,6 +398,7 @@ impl Calculator {
|
||||
})
|
||||
}
|
||||
pub fn pop(&mut self) -> CalculatorResult<f64> {
|
||||
self.flush_l()?;
|
||||
let f = self.checked_get(0)?;
|
||||
self.direct_state_change(CalculatorStateChange {
|
||||
pop: OpArgs::Unary(f),
|
||||
|
Loading…
Reference in New Issue
Block a user