mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
Merge remote-tracking branch 'origin/topic/jsiwek/gh-1296-fix-list-type-checks'
* origin/topic/jsiwek/gh-1296-fix-list-type-checks: GH-1296: fix type-checks related to list-type equality
This commit is contained in:
commit
7f3f5a868f
8 changed files with 116 additions and 39 deletions
|
@ -1590,11 +1590,8 @@ bool same_type(const Type& arg_t1, const Type& arg_t2,
|
|||
arg_t2.Tag() == TYPE_ANY )
|
||||
return true;
|
||||
|
||||
auto t1 = flatten_type(&arg_t1);
|
||||
auto t2 = flatten_type(&arg_t2);
|
||||
|
||||
if ( t1 == t2 )
|
||||
return true;
|
||||
auto t1 = &arg_t1;
|
||||
auto t2 = &arg_t2;
|
||||
|
||||
if ( t1->Tag() != t2->Tag() )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue