[Zodb-checkins] CVS: Zope3/lib/python/Persistence/BTrees - SetOpTemplate.c:1.1.2.8

Tim Peters tim.one@comcast.net
Fri, 7 Jun 2002 02:35:50 -0400


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

Modified Files:
      Tag: Zope-3x-branch
	SetOpTemplate.c 
Log Message:
multiunion():  Contrary to advice, this should pass a negative weight to
initSetIteration(), because it specifically doesn't want to bother
getting values out of mappings.


=== Zope3/lib/python/Persistence/BTrees/SetOpTemplate.c 1.1.2.7 => 1.1.2.8 ===
             int merge;  /* dummy needed for initSetIteration */
 
-            if (initSetIteration(&setiter, set, 1, &merge) < 0) goto Error;
+            if (initSetIteration(&setiter, set, -1, &merge) < 0) goto Error;
             if (setiter.next(&setiter) < 0) goto Error;
             while (setiter.position >= 0) {
                 if (result->len >= result->size && Bucket_grow(result, -1, 1) < 0)