change STACK_MAX_DEPTH to nasal_gc::stack_depth

This commit is contained in:
ValKmjolnir
2022-04-09 23:14:28 +08:00
parent c12e812651
commit 4503239731
5 changed files with 15 additions and 14 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ void nasal_vm::init(
files=filenames.data();
files_size=filenames.size();
/* set canary and program counter */
canary=gc.stack+STACK_MAX_DEPTH-1;
canary=gc.stack+nasal_gc::stack_depth-1; // gc.stack[nasal_gc::stack_depth-1]
mem_addr=nullptr;
pc=0;
localr=nullptr;