about summary refs log tree commit diff
path: root/executor.c
diff options
context:
space:
mode:
Diffstat (limited to 'executor.c')
-rw-r--r--executor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/executor.c b/executor.c
index ae92315..88667f6 100644
--- a/executor.c
+++ b/executor.c
@@ -258,7 +258,7 @@ enum cccl_ExecutorStatus cccl_execute(struct cccl_Node *code, struct cccl_Variab
             p = &n;
         } else
         {
-            short *p = get_variable(code->value, scope);
+            p = get_variable(code->value, scope);
             if (!p)
                 errx(1, "Cannot loop over non-existent variable %c", code->value);
         }