Minor change to bit_field assignment rules

This commit is contained in:
gingerBill
2019-05-04 13:02:15 +01:00
parent 40135cbc66
commit a46a1f5f34
4 changed files with 44 additions and 17 deletions
+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;
}
}