fplot: fix operator associativity
This commit is contained in:
parent
3114102485
commit
192a222f5b
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ parse(Code *c, char *s)
|
||||||
if(t->op->type == OBINARY)
|
if(t->op->type == OBINARY)
|
||||||
while(opstackbot != nil && opstackbot->type == TOP &&
|
while(opstackbot != nil && opstackbot->type == TOP &&
|
||||||
(opstackbot->op->prec > t->op->prec ||
|
(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);
|
pop(c);
|
||||||
push(t);
|
push(t);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue