diff options
| author | Tim Peters <tim.peters@gmail.com> | 2002-07-02 22:15:28 +0000 |
|---|---|---|
| committer | Tim Peters <tim.peters@gmail.com> | 2002-07-02 22:15:28 +0000 |
| commit | aab713bdf7380c1b618655cfd1b284c83a9b5d58 (patch) | |
| tree | 0ee8c9e5b1dfeea4f52c58fc0cf5539fde1fe713 /Modules/gcmodule.c | |
| parent | 285f4a7db7cd4d37629d971ad9c3a622b9df4613 (diff) | |
| download | cpython-git-aab713bdf7380c1b618655cfd1b284c83a9b5d58.tar.gz | |
visit_decref(): Added another assert.
Diffstat (limited to 'Modules/gcmodule.c')
| -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 a623e8b0c3..6df2485bd6 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--; } |
