From 192a222f5b8ed80a19588f9e6d0e9db537ace463 Mon Sep 17 00:00:00 2001 From: aiju Date: Sat, 15 Dec 2018 11:57:35 +0000 Subject: fplot: fix operator associativity --- sys/src/cmd/fplot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/src/cmd/fplot.c') 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; -- cgit v1.2.3