aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap')
-rw-r--r--bootstrap/cgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap/cgen.c b/bootstrap/cgen.c
index baf8999..b164905 100644
--- a/bootstrap/cgen.c
+++ b/bootstrap/cgen.c
@@ -215,7 +215,7 @@ genexpr(struct expr *ex) {
pri("(%e %c %e)", ex->binop.lhs, ex->binop.op, ex->binop.rhs);
break;
case Econd:
- pri("(%e) ? (%e) : (%e)", ex->cond.test, ex->cond.t, ex->cond.f);
+ pri("((%e) ? (%e) : (%e))", ex->cond.test, ex->cond.t, ex->cond.f);
break;
case Ecall:
pri("%e(", ex->call.callee);