[Zope-Checkins] CVS: Zope2 - BTreeItemsTemplate.c:1.3.2.3
Jim Fulton
jim@digiciool.com
Mon, 12 Mar 2001 16:09:57 -0500 (EST)
Update of /cvs-repository/Zope2/lib/python/BTrees
In directory korak:/tmp/cvs-serv12622
Modified Files:
Tag: Catalog-BTrees-Integration
BTreeItemsTemplate.c
Log Message:
Fixed bug that caused extra items to be included when the end of a
range was the last item in a bucket.
--- Updated File BTreeItemsTemplate.c in package Zope2 --
--- BTreeItemsTemplate.c 2001/03/05 17:11:22 1.3.2.2
+++ BTreeItemsTemplate.c 2001/03/12 21:09:57 1.3.2.3
@@ -285,6 +285,8 @@
{
while (1)
{
+ if (currentbucket == self->lastbucket) goto no_match;
+
if ((b=currentbucket->next) == NULL) goto no_match;
delta -= currentbucket->len - currentoffset;
pseudoindex += (currentbucket->len - currentoffset);