From 674d4ac4c3d5b1bfc6f7f61ccf9b0863fdbbf8da Mon Sep 17 00:00:00 2001 From: BlackMATov Date: Sat, 8 Feb 2025 17:20:15 +0700 Subject: [PATCH] more convenient order of chunks in execute and trace --- evolved.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evolved.lua b/evolved.lua index f3e4b5f..e6fc809 100644 --- a/evolved.lua +++ b/evolved.lua @@ -362,7 +362,7 @@ local function __execute_iterator(execute_state) local chunk_children = chunk.__children local chunk_child_count = chunk.__child_count - for i = 1, chunk_child_count do + for i = chunk_child_count, 1, -1 do local chunk_child = chunk_children[i] local chunk_child_fragment = chunk_child.__fragment @@ -488,7 +488,7 @@ local function __trace_fragment_chunks(fragment, trace, ...) local chunk_children = chunk.__children local chunk_child_count = chunk.__child_count - for i = 1, chunk_child_count do + for i = chunk_child_count, 1, -1 do local chunk_child = chunk_children[i] chunk_stack_size = chunk_stack_size + 1 chunk_stack[chunk_stack_size] = chunk_child