]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/cmd/fplot.c
fix filetype detecton by suffix so that multiple dots dont confuse it. (thanks kvik)
[plan9front.git] / sys / src / cmd / fplot.c
index 5f85ddbc5e87a514e9e68839ae2d1b8a98593de0..8fba63a282ac741f3434188d062d028325b46f99 100644 (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;