[Zodb-checkins] CVS: Zope/lib/python/BTrees - BucketTemplate.c:1.17.2.1
Andreas Jung
andreas@zope.com
Wed, 5 Sep 2001 09:11:20 -0400
Update of /cvs-repository/Zope/lib/python/BTrees
In directory cvs.zope.org:/tmp/cvs-serv8829
Modified Files:
Tag: Zope-2_4-branch
BucketTemplate.c
Log Message:
XXBucket.values() returned keys() instead of values.
Also adjusted unittest to catch this problem.
=== Zope/lib/python/BTrees/BucketTemplate.c 1.17 => 1.17.2.1 ===
for (i=low; i <= high; i++)
{
- COPY_KEY_TO_OBJECT(v, self->keys[i]);
+ COPY_VALUE_TO_OBJECT(v, self->values[i]);
UNLESS (v) goto err;
if (PyList_SetItem(r, i, v) < 0) goto err;
}