Tweaked stack allocation when inheriting VMs

This commit is contained in:
2026-04-26 10:14:19 +10:00
parent c9a34e2259
commit efc9fe1406
5 changed files with 23 additions and 20 deletions
+1 -1
View File
@@ -379,7 +379,7 @@ int repl(const char* filepath, bool verbose) {
}
//free the memory, and leave the VM ready for the next loop
Toy_resetVM(&vm, true);
Toy_resetVM(&vm, true, true);
free(bytecode);
printf("%s> ", prompt); //shows the terminal prompt