Fix bug with assigning certain integers to a bit_field #353

This commit is contained in:
gingerBill
2019-03-19 20:22:25 +00:00
parent a6fb2dd587
commit 0c04b9398a
+1 -1
View File
@@ -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;
}
}