mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 20:18:20 +00:00
Type: init_type() returns IntrusivePtr
This commit is contained in:
parent
cf11d78483
commit
f0a357cadf
4 changed files with 10 additions and 10 deletions
|
@ -3112,7 +3112,7 @@ TableConstructorExpr::TableConstructorExpr(IntrusivePtr<ListExpr> constructor_li
|
|||
SetType(make_intrusive<TableType>(make_intrusive<TypeList>(IntrusivePtr{AdoptRef{}, base_type(TYPE_ANY)}), nullptr));
|
||||
else
|
||||
{
|
||||
SetType({AdoptRef{}, init_type(op.get())});
|
||||
SetType(init_type(op.get()));
|
||||
|
||||
if ( ! type )
|
||||
SetError();
|
||||
|
@ -3225,7 +3225,7 @@ SetConstructorExpr::SetConstructorExpr(IntrusivePtr<ListExpr> constructor_list,
|
|||
if ( op->AsListExpr()->Exprs().empty() )
|
||||
SetType(make_intrusive<::SetType>(make_intrusive<TypeList>(IntrusivePtr{AdoptRef{}, base_type(TYPE_ANY)}), nullptr));
|
||||
else
|
||||
SetType({AdoptRef{}, init_type(op.get())});
|
||||
SetType(init_type(op.get()));
|
||||
}
|
||||
|
||||
if ( ! type )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue