Fikset enda en feil

This commit is contained in:
Hallvard Traetteberg
2021-08-31 12:37:59 +02:00
parent 7358cb2de7
commit 66daa5dea2
4 changed files with 3 additions and 4 deletions

View File

@@ -89,8 +89,8 @@ public class Calc {
if (getOperandCount() < 2) {
throw new IllegalStateException("Too few operands (" + getOperandCount() + ") on the stack");
}
var op1 = popOperand();
var op2 = popOperand();
var op1 = popOperand();
var result = op.apply(op1, op2);
pushOperand(result);
return result;