`ExactValue_Compound` wasn't handled properly.
This commit is contained in:
Jeroen van Rijn
2026-01-24 10:53:38 +01:00
parent 7e39669fd1
commit e0ff16f98c
2 changed files with 6 additions and 11 deletions

View File

@@ -12128,12 +12128,12 @@ gb_internal bool is_exact_value_zero(ExactValue const &v) {
gb_internal bool compare_exact_values_compound_lit(TokenKind op, ExactValue x, ExactValue y, bool *do_break_) {
gb_internal bool compare_exact_values_compound_lit(TokenKind op, ExactValue x, ExactValue y) {
ast_node(x_cl, CompoundLit, x.value_compound);
ast_node(y_cl, CompoundLit, y.value_compound);
if (x_cl->elems.count != y_cl->elems.count) {
if (do_break_) *do_break_ = true;
return false;
}
bool test = op == Token_CmpEq;