[Zodb-checkins] CVS: Zope3/lib/python/Persistence/BTrees - BucketTemplate.c:1.1.2.15
Jeremy Hylton
jeremy@zope.com
Wed, 5 Jun 2002 18:17:02 -0400
Update of /cvs-repository/Zope3/lib/python/Persistence/BTrees
In directory cvs.zope.org:/tmp/cvs-serv21765
Modified Files:
Tag: Zope-3x-branch
BucketTemplate.c
Log Message:
Make sure to return error if base class tp_traverse does.
Add cast to silence compiler warning.
=== Zope3/lib/python/Persistence/BTrees/BucketTemplate.c 1.1.2.14 => 1.1.2.15 ===
int err, i;
+ err = PyPersist_BASE_TYPE->tp_traverse((PyObject *)self, visit, arg);
+ if (err)
+ return err;
#define VISIT(SLOT) \
if (SLOT) { \
err = visit((PyObject *)(SLOT), arg); \
@@ -1192,8 +1195,6 @@
return err; \
}
- PyPersist_BASE_TYPE->tp_traverse(self, visit, arg);
-
if (self->next)
VISIT(self->next);
/* XXX should implement more efficiently: don't iterate at all if