Propagate array arithmetic fix

This commit is contained in:
gingerBill
2025-12-15 09:43:29 +00:00
parent dfbbe7ce78
commit ae314a4c6b

View File

@@ -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);
}