fixes for vector assignments involving "any"/"vector of any" types

This commit is contained in:
Vern Paxson 2023-08-24 15:48:00 -07:00
parent ae03d591b8
commit d70a0fae85
2 changed files with 7 additions and 3 deletions

View file

@ -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;
}