diff options
| author | gingerBill <bill@gingerbill.org> | 2019-05-04 13:02:15 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-05-04 13:02:15 +0100 |
| commit | a46a1f5f34d281ecede1b446fea7be8834496da5 (patch) | |
| tree | badacc472ce50c6ee0fda26fdee4e6b521af0455 /src/check_stmt.cpp | |
| parent | 40135cbc667b5991e00ff7d9fc2d638f94b9fb9b (diff) | |
Minor change to bit_field assignment rules
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 07aee1a7b..2ef0a6e56 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -264,7 +264,7 @@ Type *check_assignment_variable(CheckerContext *ctx, Operand *lhs, Operand *rhs) } BigInt imax = big_int_make_u64(imax_); - if (big_int_cmp(&i, &imax) >= 0) { + if (big_int_cmp(&i, &imax) <= 0) { return rhs->type; } } |