From 32495bacca2603046acdacdd16875652098fb2f4 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Wed, 26 Mar 2025 18:48:48 +0300 Subject: Make number of REPEAT iterations static --- executor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/executor.c b/executor.c index 88667f6..c281b82 100644 --- a/executor.c +++ b/executor.c @@ -281,8 +281,9 @@ enum cccl_ExecutorStatus cccl_execute(struct cccl_Node *code, struct cccl_Variab else if (*p < 0) errx(1, "Cannot iterate %c=%d times", code->value, *p); + short n = *p; enum cccl_ExecutorStatus res; - for (size_t i = 0; i < *p; ++i) + for (size_t i = 0; i < n; ++i) for (size_t j = 0; j < code->in_length; ++j) switch ((res = cccl_execute(code->in[j], scope, depth + 1))) { -- cgit 1.4.1