[Zope-Checkins] CVS: Zope/lib/python/BTrees - SetOpTemplate.c:1.22
Tim Peters
tim.one@comcast.net
Fri, 7 Jun 2002 02:44:03 -0400
Update of /cvs-repository/Zope/lib/python/BTrees
In directory cvs.zope.org:/tmp/cvs-serv15925
Modified Files:
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.
=== Zope/lib/python/BTrees/SetOpTemplate.c 1.21 => 1.22 ===
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)