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:
parent
285f4a7db7
commit
aab713bdf7
@ -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--;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user