mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
fixes for vector assignments involving "any"/"vector of any" types
This commit is contained in:
parent
ae03d591b8
commit
d70a0fae85
2 changed files with 7 additions and 3 deletions
|
@ -3726,7 +3726,8 @@ bool VectorVal::AddTo(Val* val, bool /* is_first_init */) const
|
|||
auto last_idx = v->Size();
|
||||
|
||||
for ( auto i = 0u; i < Size(); ++i )
|
||||
v->Assign(last_idx++, At(i));
|
||||
if ( ! v->Assign(last_idx++, At(i)) )
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue