fplot: fix operator associativity

This commit is contained in:
aiju 2018-12-15 11:57:35 +00:00
parent 3114102485
commit 192a222f5b

View file

@ -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;