From: Neil Schemenauer Date: Fri, 28 Jun 2002 19:16:04 +0000 (+0000) Subject: Fix small bug. The count of objects in all generations younger then the X-Git-Tag: v2.3c1~5179 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9051640f807560b9c8d915f681feedb71083830;p=python Fix small bug. The count of objects in all generations younger then the collected one should be zeroed. --- diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index e4417c2031..a26adae7d0 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c @@ -396,7 +396,7 @@ collect(int generation) if (generation+1 < NUM_GENERATIONS) generations[generation+1].count += 1; for (i = 0; i <= generation; i++) - generations[generation].count = 0; + generations[i].count = 0; /* merge younger generations with one we are currently collecting */ for (i = 0; i < generation; i++) {