From 3238b34723128fcd6697c56a5820537d59228798 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Thu, 21 Jun 2007 17:23:43 -0600 Subject: [PATCH] fix thinko in visitRoots() --- src/vm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm.cpp b/src/vm.cpp index 076d2177a5..c06b48afd5 100644 --- a/src/vm.cpp +++ b/src/vm.cpp @@ -231,7 +231,7 @@ visitRoots(Thread* t, Heap::Visitor* v) v->visit(&(t->exception)); for (unsigned i = 0; i < t->sp; ++i) { - v->visit(t->stack + t->sp); + v->visit(t->stack + i); } for (Thread::Protector* p = t->protector; p; p = p->next) {