mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 13:08:20 +00:00
Val: cast_value_to_type() returns IntrusivePtr
This commit is contained in:
parent
96951c1300
commit
3331abb4f2
4 changed files with 6 additions and 8 deletions
|
@ -834,7 +834,7 @@ Val* SwitchStmt::DoExec(Frame* f, Val* v, stmt_flow_type& flow) const
|
|||
if ( matching_id )
|
||||
{
|
||||
auto cv = cast_value_to_type(v, matching_id->Type());
|
||||
f->SetElement(matching_id, cv);
|
||||
f->SetElement(matching_id, cv.release());
|
||||
}
|
||||
|
||||
flow = FLOW_NEXT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue