This commit is contained in:
uan
2026-02-05 22:43:01 +01:00
parent 1581ca4928
commit a1c99b8b9e
2 changed files with 3 additions and 1 deletions

View File

@@ -159,7 +159,7 @@ fn (mut g Generator) gen_expr(expr Expr) {
g.out.write_string(mangle_var(expr.name))
}
UnaryExpr {
g.out.write_string('${expr.ident}${expr.op}')
g.out.write_string('(${mangle_var(expr.ident)}${expr.op})')
}
BinaryExpr {
g.out.write_string('(')