summaryrefslogtreecommitdiff
path: root/sys/src/cmd/fplot.c
diff options
context:
space:
mode:
authoraiju <devnull@localhost>2018-12-15 11:57:35 +0000
committeraiju <devnull@localhost>2018-12-15 11:57:35 +0000
commit192a222f5b8ed80a19588f9e6d0e9db537ace463 (patch)
tree140d40257aa3d91cd6542465355e4b71e6b858f9 /sys/src/cmd/fplot.c
parent3114102485d1be792cf528b3796fdb961e60e9e1 (diff)
fplot: fix operator associativity
Diffstat (limited to 'sys/src/cmd/fplot.c')
-rw-r--r--sys/src/cmd/fplot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/fplot.c b/sys/src/cmd/fplot.c
index 5f85ddbc5..8fba63a28 100644
--- a/sys/src/cmd/fplot.c
+++ b/sys/src/cmd/fplot.c
@@ -264,7 +264,7 @@ parse(Code *c, char *s)
if(t->op->type == OBINARY)
while(opstackbot != nil && opstackbot->type == TOP &&
(opstackbot->op->prec > t->op->prec ||
- t->op->rassoc && opstackbot->op->prec == t->op->prec))
+ !t->op->rassoc && opstackbot->op->prec == t->op->prec))
pop(c);
push(t);
break;