Use prefix decrement
This commit is contained in:
parent
f75dbef208
commit
48397d6c22
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue