mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
Deprecate TableVal IsSubsetOf and EqualTo taking Val*, use Val&
This commit is contained in:
parent
e01d2c1b37
commit
b85cfc6fe4
3 changed files with 18 additions and 10 deletions
|
@ -767,19 +767,19 @@ IntrusivePtr<Val> BinaryExpr::SetFold(Val* v1, Val* v2) const
|
|||
}
|
||||
|
||||
case EXPR_EQ:
|
||||
res = tv1->EqualTo(tv2);
|
||||
res = tv1->EqualTo(*tv2);
|
||||
break;
|
||||
|
||||
case EXPR_NE:
|
||||
res = ! tv1->EqualTo(tv2);
|
||||
res = ! tv1->EqualTo(*tv2);
|
||||
break;
|
||||
|
||||
case EXPR_LT:
|
||||
res = tv1->IsSubsetOf(tv2) && tv1->Size() < tv2->Size();
|
||||
res = tv1->IsSubsetOf(*tv2) && tv1->Size() < tv2->Size();
|
||||
break;
|
||||
|
||||
case EXPR_LE:
|
||||
res = tv1->IsSubsetOf(tv2);
|
||||
res = tv1->IsSubsetOf(*tv2);
|
||||
break;
|
||||
|
||||
case EXPR_GE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue