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