0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 11:15:56 +01:00

visit_decref(): Added another assert.

This commit is contained in:
Tim Peters 2002-07-02 22:15:28 +00:00
parent 285f4a7db7
commit aab713bdf7

View File

@ -224,6 +224,7 @@ visit_decref(PyObject *op, void *data)
* generation being collected, which can be recognized
* because only they have positive gc_refs.
*/
assert(gc->gc.gc_refs != 0); /* else refcount was too small */
if (gc->gc.gc_refs > 0)
gc->gc.gc_refs--;
}