diff options
author | Roman / Nea <roman.graef@gmail.com> | 2022-07-16 11:31:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-16 11:31:15 +0200 |
commit | efb43f7c6f9b191ea8a880dc4b209e835495846a (patch) | |
tree | 03a84b850203ed5d6064123a7bcf800c0c04d15e | |
parent | 6489385cabc021cc36b487151b5d6c85d7617390 (diff) | |
download | NotEnoughUpdates-efb43f7c6f9b191ea8a880dc4b209e835495846a.tar.gz NotEnoughUpdates-efb43f7c6f9b191ea8a880dc4b209e835495846a.tar.bz2 NotEnoughUpdates-efb43f7c6f9b191ea8a880dc4b209e835495846a.zip |
Use left to right association order (#188)
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/util/Calculator.java | 2 |
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; |