summary refs log tree commit diff
path: root/minic
diff options
context:
space:
mode:
Diffstat (limited to 'minic')
-rw-r--r--minic/minic.y18
1 files changed, 6 insertions, 12 deletions
diff --git a/minic/minic.y b/minic/minic.y
index 6b4150d..eeef900 100644
--- a/minic/minic.y
+++ b/minic/minic.y
@@ -290,18 +290,12 @@ call(Node *n, Symb *sr)
 	fprintf(of, "\t");
 	psymb(*sr);
 	fprintf(of, " =%c call $%s(", irtyp(sr->ctyp), f);
-	a = n->r;
-	if (a)
-		for (;;) {
-			fprintf(of, "%c ", irtyp(a->u.s.ctyp));
-			psymb(a->u.s);
-			a = a->r;
-			if (a)
-				fprintf(of, ", ");
-			else
-				break;
-		}
-	fprintf(of, ")\n");
+	for (a=n->r; a; a=a->r) {
+		fprintf(of, "%c ", irtyp(a->u.s.ctyp));
+		psymb(a->u.s);
+		fprintf(of, ", ");
+	}
+	fprintf(of, "...)\n");
 }
 
 Symb