aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2026-01-24 10:53:38 +0100
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2026-01-24 10:53:38 +0100
commite0ff16f98cf6c61115db50bb607479e6f8b0b98b (patch)
tree1eebce93a8f62028e9607dee9137e7aa09ccc424 /src/check_expr.cpp
parent7e39669fd1f4bc67a801d0dc5ba6eadffc7de3e5 (diff)
Fix #6126
`ExactValue_Compound` wasn't handled properly.
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 8fdd5372b..4e791af16 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -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;