diff options
| author | gingerBill <bill@gingerbill.org> | 2019-03-19 20:22:25 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-03-19 20:22:25 +0000 |
| commit | 0c04b9398a79451c3a21a855d77d1d4b92d09efc (patch) | |
| tree | b6dec529a27a0863c819f0988d3ca2d49ea0e132 /src/check_stmt.cpp | |
| parent | a6fb2dd5877cf1af1911451d31bf3ba042315c57 (diff) | |
Fix bug with assigning certain integers to a bit_field #353
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 07de5dc2e..07aee1a7b 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; } } |