[Zope-Checkins] CVS: Zope3/lib/python/Persistence/BTrees - BTreeTemplate.c:1.1.2.17

Tim Peters tim.one@comcast.net
Wed, 5 Jun 2002 21:47:28 -0400


Update of /cvs-repository/Zope3/lib/python/Persistence/BTrees
In directory cvs.zope.org:/tmp/cvs-serv21148

Modified Files:
      Tag: Zope-3x-branch
	BTreeTemplate.c 
Log Message:
BTree_traverse():  I forget to visit firstbucket; repaired.


=== Zope3/lib/python/Persistence/BTrees/BTreeTemplate.c 1.1.2.16 => 1.1.2.17 ===
          * key 0 slot is unused and should not be traversed.
          */
-        for (i = 1 ; i < len; i++)
+        for (i = 1; i < len; i++)
 	    VISIT(self->data[i].key);
     }
 
     /* Children are always pointers, and child 0 is legit. */
     for (i = 0; i < len; i++)
         VISIT(self->data[i].child);
+
+    VISIT(self->firstbucket);
 
 Error:
     /* XXX I figure an "end persistence dance" probably belongs here */