aboutsummaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-03-14 02:44:37 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-03-14 02:44:37 -0400
commit8847eaa660ef1538050c4bfc51ce405c90e6323b (patch)
treea2ed237fe03ced76bb725681810a371ef206cf60 /compile.c
parentfdc3eadba25aff7894419e483519e73150be33d4 (diff)
Bugfix for looping
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 19ff0563..0a0c4eaf 100644
--- a/compile.c
+++ b/compile.c
@@ -1146,7 +1146,6 @@ CORD compile(env_t *env, ast_t *ast)
}
}
case IntType: {
- env_t *scope = fresh_scope(env);
CORD value = compile(env, for_->value);
CORD n = compile(env, for_->iter);
CORD index = for_->index ? compile(env, for_->index) : CORD_EMPTY;