summaryrefslogtreecommitdiffstats
path: root/Modules/gcmodule.c
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-06-28 19:16:04 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-06-28 19:16:04 (GMT)
commitc9051640f807560b9c8d915f681feedb71083830 (patch)
tree388b9e17b0eb6eda81ea2ff1c20860a377a67bdb /Modules/gcmodule.c
parent0d3b2fe094fa0ae91d2db3cff2cd5d35f110226f (diff)
downloadcpython-c9051640f807560b9c8d915f681feedb71083830.zip
cpython-c9051640f807560b9c8d915f681feedb71083830.tar.gz
cpython-c9051640f807560b9c8d915f681feedb71083830.tar.bz2
Fix small bug. The count of objects in all generations younger then the
collected one should be zeroed.
Diffstat (limited to 'Modules/gcmodule.c')
-rw-r--r--Modules/gcmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c
index e4417c2..a26adae 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++) {