avoid infinite loop in deadWord

This commit is contained in:
Joel Dice 2009-11-03 14:14:27 -07:00
parent ed4206b06d
commit 4566e7a7dd

View File

@ -1008,7 +1008,7 @@ deadWord(Context* c, Value* v)
Value* nextWord = v->nextWord;
assert(c, nextWord != v);
for (SiteIterator it(c, v); it.hasMore();) {
for (SiteIterator it(c, v, true, false); it.hasMore();) {
Site* s = it.next();
if (s->registerSize(c) > BytesPerWord) {