mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Fix bug with assigning certain integers to a bit_field #353
This commit is contained in:
+1
-1
@@ -264,7 +264,7 @@ Type *check_assignment_variable(CheckerContext *ctx, Operand *lhs, Operand *rhs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
BigInt imax = big_int_make_u64(imax_);
|
BigInt imax = big_int_make_u64(imax_);
|
||||||
if (big_int_cmp(&i, &imax) > 0) {
|
if (big_int_cmp(&i, &imax) >= 0) {
|
||||||
return rhs->type;
|
return rhs->type;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user