Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZODB
Commits
e7997255
Commit
e7997255
authored
Jun 27, 2002
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
multiunion(): Don't bother with bucket_append() when an input set/bucket
is empty.
parent
2fa3cf66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/BTrees/SetOpTemplate.c
src/BTrees/SetOpTemplate.c
+4
-3
No files found.
src/BTrees/SetOpTemplate.c
View file @
e7997255
...
...
@@ -16,7 +16,7 @@
Set operations
****************************************************************************/
#define SETOPTEMPLATE_C "$Id: SetOpTemplate.c,v 1.2
8 2002/06/27 22:09:32
tim_one Exp $\n"
#define SETOPTEMPLATE_C "$Id: SetOpTemplate.c,v 1.2
9 2002/06/27 22:24:16
tim_one Exp $\n"
#ifdef INTSET_H
static
int
...
...
@@ -508,10 +508,11 @@ multiunion_m(PyObject *ignored, PyObject *args)
set
->
ob_type
==
(
PyTypeObject
*
)
&
BucketType
)
{
Bucket
*
b
=
BUCKET
(
set
);
int
status
;
int
status
=
0
;
UNLESS
(
PER_USE
(
b
))
goto
Error
;
status
=
bucket_append
(
result
,
b
,
0
,
b
->
len
,
0
,
i
<
n
-
1
);
if
(
b
->
len
)
status
=
bucket_append
(
result
,
b
,
0
,
b
->
len
,
0
,
i
<
n
-
1
);
PER_UNUSE
(
b
);
if
(
status
<
0
)
goto
Error
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment