mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-11 15:27:06 -04:00
Propagate array arithmetic fix
This commit is contained in:
1 parent
dfbbe7ce78
commit
ae314a4c6b
1 file changed
+4
-1
+4
-1
@@ -4455,7 +4455,10 @@ gb_internal void check_binary_expr(CheckerContext *c, Operand *x, Ast *node, Typ
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else if (!is_type_array_like(x->type)) {
|
||||
} else if (is_type_array_like(x->type)) {
|
||||
x->mode = Addressing_Value;
|
||||
return;
|
||||
} else {
|
||||
x->value = exact_binary_operator_value(op.kind, a, b);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user