diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-07-02 22:15:28 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-07-02 22:15:28 (GMT) |
commit | aab713bdf7380c1b618655cfd1b284c83a9b5d58 (patch) | |
tree | 0ee8c9e5b1dfeea4f52c58fc0cf5539fde1fe713 /Modules | |
parent | 285f4a7db7cd4d37629d971ad9c3a622b9df4613 (diff) | |
download | cpython-aab713bdf7380c1b618655cfd1b284c83a9b5d58.zip cpython-aab713bdf7380c1b618655cfd1b284c83a9b5d58.tar.gz cpython-aab713bdf7380c1b618655cfd1b284c83a9b5d58.tar.bz2 |
visit_decref(): Added another assert.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/gcmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index a623e8b..6df2485 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c @@ -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--; } |