From 10e11fb74286fa1fd2f5efea9a286d4cff50ebe6 Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Thu, 3 Jul 2025 15:14:24 +0200 Subject: [PATCH] Better detect offending cast. --- src/compiler/sema_casts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/sema_casts.c b/src/compiler/sema_casts.c index 3f76c8511..02302b68b 100644 --- a/src/compiler/sema_casts.c +++ b/src/compiler/sema_casts.c @@ -931,7 +931,7 @@ static bool rule_arrptr_to_slice(CastContext *cc, bool is_explicit, bool is_sile static bool rule_ulist_to_struct(CastContext *cc, UNUSED bool is_explicit, bool is_silent) { - ASSERT(expr_is_const_untyped_list(cc->expr)); + ASSERT_SPAN(cc->expr, expr_is_const_untyped_list(cc->expr)); Expr **expressions = cc->expr->const_expr.untyped_list; unsigned size = vec_size(expressions); if (!size) return true;