ref: 87915ed9e867cb358a4969ee085dabaeaf0b7f34
parent: 6b6b5971fa47714db1579e8f084f0c5637397705
author: aiju <devnull@localhost>
date: Sat Dec 15 06:57:35 EST 2018
fplot: fix operator associativity
--- a/sys/src/cmd/fplot.c
+++ b/sys/src/cmd/fplot.c
@@ -264,7 +264,7 @@
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;
--
⑨