From 669808730e3b881c0995408b8331e2e29d5943cc Mon Sep 17 00:00:00 2001 From: Ratstail91 Date: Sat, 4 Mar 2023 22:57:41 +1100 Subject: [PATCH] Minor tweak that shouldn't break anything --- source/toy_interpreter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/toy_interpreter.c b/source/toy_interpreter.c index 826258c..121b40a 100644 --- a/source/toy_interpreter.c +++ b/source/toy_interpreter.c @@ -1756,7 +1756,7 @@ static bool execIndexAssign(Toy_Interpreter* interpreter) { } //iterate... - while(interpreter->stack.count > 1) { + while(interpreter->stack.count >= 4) { Toy_freeLiteral(assign); Toy_freeLiteral(third); Toy_freeLiteral(second);