| author | |
| committer | |
| log | a2ce4c1bfbf28d1bd2f0b783ee6bef083327e98f |
| tree | ea224b2b67e96499c948e2878cbbf906dc8a4cb1 |
| parent | 723c70fd438a6e9221155ff632a9974e30a7fe14 |
See https://github.com/Vexu/arocc/pull/1117 for context1 files changed, 1 insertions(+), 1 deletions(-)
lib/compiler/aro/aro/Preprocessor/Parser.zig+1-1| ... | ... | @@ -323,7 +323,7 @@ fn binaryExpr(p: *Parser, min_prec: Token.Precedence, eval: bool) Error!?Value { |
| 323 | 323 | const else_res = try p.binaryExpr(op_prec, eval_else) orelse return null; |
| 324 | 324 | |
| 325 | 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 | 327 | try lhs.toUnsigned(p, operator, "right"); |
| 328 | 328 | } |
| 329 | 329 | }, |