Skip to content

Commit

Permalink
sdf
Browse files Browse the repository at this point in the history
  • Loading branch information
medvednikov committed Nov 12, 2024
1 parent 9a1bd79 commit fc763e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion expr.v
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,11 @@ fn (mut app App) binary_expr(b BinaryExpr) {
}

fn (mut app App) unary_expr(u UnaryExpr) {
if u.op != '+' {
if u.op == '^' {
// In Go bitwise NOT is ^x
// In V it's ~x, ^ is only used for XOR: x^b
app.gen('~')
} else if u.op != '+' {
app.gen(u.op)
}
app.expr(u.x)
Expand Down

0 comments on commit fc763e3

Please sign in to comment.