diff options
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)) { |