diff options
author | nea <romangraef@gmail.com> | 2022-07-15 22:48:28 +0200 |
---|---|---|
committer | nea <romangraef@gmail.com> | 2022-07-15 22:48:28 +0200 |
commit | dc9b2c52f9641a86aa7b87aebb4180e1f5b304e6 (patch) | |
tree | 03a84b850203ed5d6064123a7bcf800c0c04d15e | |
parent | 6489385cabc021cc36b487151b5d6c85d7617390 (diff) | |
download | NotEnoughUpdates-ntr.tar.gz NotEnoughUpdates-ntr.tar.bz2 NotEnoughUpdates-ntr.zip |
Use left to right association orderntr
-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; |