From: Tim Peters Date: Tue, 2 Jul 2002 22:15:28 +0000 (+0000) Subject: visit_decref(): Added another assert. X-Git-Tag: v2.3c1~5126 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aab713bdf7380c1b618655cfd1b284c83a9b5d58;p=python visit_decref(): Added another assert. --- 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--; }