diff --git a/src/calc.rs b/src/calc.rs index e83aeb1..d0b68b7 100644 --- a/src/calc.rs +++ b/src/calc.rs @@ -398,6 +398,7 @@ impl Calculator { }) } pub fn pop(&mut self) -> CalculatorResult { + self.flush_l()?; let f = self.checked_get(0)?; self.direct_state_change(CalculatorStateChange { pop: OpArgs::Unary(f),