| ... | @@ -323,7 +323,7 @@ fn binaryExpr(p: *Parser, min_prec: Token.Precedence, eval: bool) Error!?Value { | ... | @@ -323,7 +323,7 @@ fn binaryExpr(p: *Parser, min_prec: Token.Precedence, eval: bool) Error!?Value { |
| 323 | const else_res = try p.binaryExpr(op_prec, eval_else) orelse return null; | 323 | const else_res = try p.binaryExpr(op_prec, eval_else) orelse return null; |
| 324 | | 324 | |
| 325 | lhs = if (lhs.toBool()) rhs else else_res; | 325 | lhs = if (lhs.toBool()) rhs else else_res; |
| 326 | if ((eval and rhs == .unsigned) or else_res == .unsigned) { | 326 | if (rhs == .unsigned or else_res == .unsigned) { |
| 327 | try lhs.toUnsigned(p, operator, "right"); | 327 | try lhs.toUnsigned(p, operator, "right"); |
| 328 | } | 328 | } |
| 329 | }, | 329 | }, |