shithub: riscv

Download patch

ref: 192a222f5b8ed80a19588f9e6d0e9db537ace463
parent: 3114102485d1be792cf528b3796fdb961e60e9e1
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;