C codegen: emit correct operator instead of placeholder
This commit is contained in:
parent
319047ccea
commit
53d1825d5b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue