diff --git a/compiler/cgC.c b/compiler/cgC.c index e867710..c956ee5 100644 --- a/compiler/cgC.c +++ b/compiler/cgC.c @@ -255,7 +255,7 @@ emit_expr_binop(CodegenC *cgc, const AstBinop *expr) /* guard binops with parenthesis, even if they are redundant */ fputc('(', cgc->cgctx->out); emit_expr(cgc, expr->left); - fputc('+', cgc->cgctx->out); + fputs((char *)expr->op.s, cgc->cgctx->out); emit_expr(cgc, expr->right); fputc(')', cgc->cgctx->out); }