aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-05-25 15:51:02 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-05-25 15:51:02 -0400
commit921c81c56c5cc9838ef4957c844d892a5707ee48 (patch)
tree275a4e21ab6e024f35bbf22753f38ecb91cf3f73
parentf148d861cb69419378d9e3ca4d9816f98e0a1cff (diff)
Bugfix for mutation while iterating
-rw-r--r--src/compile.c2
1 files changed, 1 insertions, 1 deletions
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) {