mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-09 22:32:13 -04:00
Fix indexing logic of FCD arrays
This commit is contained in:
1 parent
e6d7ccad2c
commit
59eaa13625
1 file changed
+4
-1
+4
-1
@@ -8889,8 +8889,11 @@ gb_internal bool check_set_index_data(Operand *o, Type *t, bool indirection, i64
|
||||
|
||||
case Type_FixedCapacityDynamicArray:
|
||||
o->type = t->FixedCapacityDynamicArray.elem;
|
||||
if (o->mode != Addressing_Constant) {
|
||||
if (indirection) {
|
||||
o->mode = Addressing_Variable;
|
||||
} else if (o->mode != Addressing_Variable &&
|
||||
o->mode != Addressing_Constant) {
|
||||
o->mode = Addressing_Value;
|
||||
}
|
||||
return true;
|
||||
|
||||
|
||||
Reference in new issue
Block a user