visit_decref(): Added another assert.

This commit is contained in:
Tim Peters 2002-07-02 22:15:28 +00:00
parent 285f4a7db7
commit aab713bdf7
1 changed files with 1 additions and 0 deletions

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--;
}