aboutsummaryrefslogtreecommitdiffstats
path: root/src/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.c b/src/parser.c
index f6f5f41..a5e2b42 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -528,7 +528,7 @@ semantic_analysis(Environment *env, Object *obj, Errors *errors) {
528 ssize_t idx = find_var_index(cur_env->locals, obj); 528 ssize_t idx = find_var_index(cur_env->locals, obj);
529 if (idx != -1) { 529 if (idx != -1) {
530 found = cur_env->local_values[idx]; 530 found = cur_env->local_values[idx];
531 if (cur_env != env && cur_env->parent != NULL) { 531 if (cur_env != env) {
532 insert_captured(env, obj); 532 insert_captured(env, obj);
533 } 533 }
534 break; 534 break;