mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-01 02:42:09 +00:00
Propagate array arithmetic fix
This commit is contained in:
@@ -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