diff --git a/vm/local_roots.hpp b/vm/local_roots.hpp index 300a971f16..22c95ed4dd 100644 --- a/vm/local_roots.hpp +++ b/vm/local_roots.hpp @@ -16,7 +16,7 @@ struct gc_root : public tagged ~gc_root() { #ifdef FACTOR_DEBUG - assert(myvm->gc_locals.back() == (cell)this); + assert(parent_vm->gc_locals.back() == (cell)this); #endif parent_vm->gc_locals.pop_back(); } @@ -35,7 +35,7 @@ struct gc_bignum ~gc_bignum() { #ifdef FACTOR_DEBUG - assert(myvm->gc_bignums.back() == (cell)addr); + assert(parent_vm->gc_bignums.back() == (cell)addr); #endif parent_vm->gc_bignums.pop_back(); }