From 7ea1754cd355d05f30f8f5ac64665ceea810e244 Mon Sep 17 00:00:00 2001 From: "beard%netscape.com" Date: Sat, 12 Jan 2002 02:26:14 +0000 Subject: [PATCH] Fix windows bustage. --- js2/src/collector.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js2/src/collector.cpp b/js2/src/collector.cpp index 56c47642bd9e..ce2de49df636 100644 --- a/js2/src/collector.cpp +++ b/js2/src/collector.cpp @@ -209,7 +209,8 @@ void testCollector() ConsCell* cell; ConsCell** link = &head; - for (uint32 i = 0; i < kCellCount; ++i) { + uint32 i; + for (i = 0; i < kCellCount; ++i) { *link = cell = new (gc) ConsCell; ASSERT(cell); cell->car = i; @@ -224,7 +225,7 @@ void testCollector() // walk the list again to verify that it is intact. link = &head; - for (uint32 i = 0; i < kCellCount; i++) { + for (i = 0; i < kCellCount; i++) { cell = *link; ASSERT(cell); ASSERT(cell->car == (float64)i);