From 921c81c56c5cc9838ef4957c844d892a5707ee48 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 25 May 2025 15:51:02 -0400 Subject: Bugfix for mutation while iterating --- src/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compile.c') diff --git a/src/compile.c b/src/compile.c index e09474a2..ebd7b6ba 100644 --- a/src/compile.c +++ b/src/compile.c @@ -1683,7 +1683,7 @@ static CORD _compile_statement(env_t *env, ast_t *ast) stop); } - type_t *iter_t = value_type(get_type(env, for_->iter)); + type_t *iter_t = get_type(env, for_->iter); type_t *iter_value_t = value_type(iter_t); switch (iter_value_t->tag) { -- cgit v1.2.3