mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
bug fix for set intersection
This commit is contained in:
parent
072a25df0f
commit
e416d34f1f
1 changed files with 2 additions and 2 deletions
|
@ -1734,9 +1734,9 @@ TableVal* TableVal::Intersect(const TableVal* tv) const
|
||||||
// Figure out which is smaller.
|
// Figure out which is smaller.
|
||||||
if ( t1->Length() > t2->Length() )
|
if ( t1->Length() > t2->Length() )
|
||||||
{ // Swap.
|
{ // Swap.
|
||||||
const PDict(TableEntryVal)* t3 = t1;
|
const PDict(TableEntryVal)* tmp = t1;
|
||||||
t1 = t2;
|
t1 = t2;
|
||||||
t2 = t3;
|
t2 = tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
IterCookie* c = t1->InitForIteration();
|
IterCookie* c = t1->InitForIteration();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue