diff options
| author | 2022-08-30 13:43:10 +0200 | |
|---|---|---|
| committer | 2022-08-30 13:43:10 +0200 | |
| commit | bbb6779bed7abcc9fec24ddc513e09bc8f876481 (patch) | |
| tree | 5a882ec06ebd1b112678c892cfcb4016b7c40bdc /src/parse.cff | |
| parent | deb6b8e1b6fc2543ff27f8d0c75789733374a2c1 (diff) | |
union statics
Diffstat (limited to 'src/parse.cff')
| -rw-r--r-- | src/parse.cff | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.cff b/src/parse.cff index ffe9a9d..b758061 100644 --- a/src/parse.cff +++ b/src/parse.cff @@ -2106,7 +2106,7 @@ fn pexcmp(P *Parser) Expr { ex.ty, rhs.ty, &tok); } fn ispositiveintlit(ex Expr) bool { - return ex.u.#tag == :IntLit and ex.u.IntLit.i >- 0; + return ex.u.#tag == :IntLit and ex.u.IntLit.i >= 0; } if ty->is(:Int) and ty != ty_int and ex.ty.u.Int.sgn != rhs.ty.u.Int.sgn and !(ispositiveintlit(ex) or ispositiveintlit(rhs)) { |