Use prefix decrement

This commit is contained in:
Christian Heimes 2008-02-08 00:14:34 +00:00
parent f75dbef208
commit 48397d6c22
2 changed files with 3 additions and 4 deletions

View File

@ -208,10 +208,10 @@ static int numfree = 0;
void
PyDict_Fini(void)
{
PyListObject *op;
PyDictObject *op;
while (numfree) {
op = free_list[numfree--];
op = free_list[--numfree];
assert(PyDict_CheckExact(op));
PyObject_GC_Del(op);
}

View File

@ -92,8 +92,7 @@ PyList_Fini(void)
PyListObject *op;
while (numfree) {
numfree--;
op = free_list[numfree];
op = free_list[--numfree];
assert(PyList_CheckExact(op));
PyObject_GC_Del(op);
}