From f9e62b80ea3817c7dbe55ea77393308a4a155395 Mon Sep 17 00:00:00 2001 From: Simone Raimondi Date: Wed, 16 Apr 2025 17:45:39 +0200 Subject: [PATCH] Fix for build (#2082) --- src/compiler/sema_stmts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/sema_stmts.c b/src/compiler/sema_stmts.c index 82e2e08a0..7b20a3a4a 100644 --- a/src/compiler/sema_stmts.c +++ b/src/compiler/sema_stmts.c @@ -2607,8 +2607,8 @@ static inline bool sema_analyse_ct_foreach_stmt(SemaContext *context, Ast *state Expr **expressions = NULL; Type *const_list_type = NULL; const char *bytes = NULL; - Type *bytes_type; - switch (collection->const_expr.const_kind) + Type *bytes_type = NULL; + switch (collection->const_expr.const_kind) { case CONST_FLOAT: case CONST_INTEGER: