Skip to content

Commit

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

fn (mut app App) unary_expr(u UnaryExpr) {
if false && 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('~')
Expand Down

0 comments on commit f1400b9

Please sign in to comment.