Skip to content

Commit

Permalink
cl: goplus#1278 unary op pass src
Browse files Browse the repository at this point in the history
  • Loading branch information
visualfc committed Jun 19, 2022
1 parent d24fb28 commit 2d02bb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cl/expr.go
Expand Up @@ -269,7 +269,7 @@ func compileExprOrNone(ctx *blockCtx, expr ast.Expr) {

func compileUnaryExpr(ctx *blockCtx, v *ast.UnaryExpr, twoValue bool) {
compileExpr(ctx, v.X)
ctx.cb.UnaryOp(gotoken.Token(v.Op), twoValue)
ctx.cb.UnaryOp(gotoken.Token(v.Op), twoValue, v)
}

func compileBinaryExpr(ctx *blockCtx, v *ast.BinaryExpr) {
Expand Down

0 comments on commit 2d02bb5

Please sign in to comment.