From 3fea650fed42986eef2543a405420fed29f09441 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Sat, 8 May 2021 11:00:55 -0400 Subject: [PATCH] Flush when pop f64 --- src/calc.rs | 1 + 1 file changed, 1 insertion(+) 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),