aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoman / Nea <roman.graef@gmail.com>2022-07-16 11:31:15 +0200
committerGitHub <noreply@github.com>2022-07-16 11:31:15 +0200
commitefb43f7c6f9b191ea8a880dc4b209e835495846a (patch)
tree03a84b850203ed5d6064123a7bcf800c0c04d15e /src
parent6489385cabc021cc36b487151b5d6c85d7617390 (diff)
downloadNotEnoughUpdates-efb43f7c6f9b191ea8a880dc4b209e835495846a.tar.gz
NotEnoughUpdates-efb43f7c6f9b191ea8a880dc4b209e835495846a.tar.bz2
NotEnoughUpdates-efb43f7c6f9b191ea8a880dc4b209e835495846a.zip
Use left to right association order (#188)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/Calculator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/Calculator.java b/src/main/java/io/github/moulberry/notenoughupdates/util/Calculator.java
index 45d7c051..7d378a03 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/util/Calculator.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/util/Calculator.java
@@ -172,7 +172,7 @@ public class Calculator {
break;
assert (l.type == TokenType.BINOP);
int pl = getPrecedence(l);
- if (pl > p) {
+ if (pl >= p) { // Association order
out.add(op.pop());
} else {
break;