Fix array bounds checking
This commit is contained in:
1 parent
d4ba6b5466
commit
59fb74d2a2
8 files changed
+264
-199
No files matched your search
@@ -52,6 +52,10 @@ b32 check_is_assignable_to(Checker *c, Operand *operand, Type *type, b32 is_argu
|
||||
return true;
|
||||
}
|
||||
|
||||
if (operand->mode == Addressing_Builtin) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Type *s = operand->type;
|
||||
|
||||
if (are_types_identical(s, type)) {
|
||||
|
||||
Reference in new issue
Block a user