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);