mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
fix using ++/-- to vectors that contain holes
This commit is contained in:
parent
1bbb7fc4bd
commit
ff393dbd8a
1 changed files with 2 additions and 1 deletions
|
@ -1239,7 +1239,8 @@ ValPtr IncrExpr::Eval(Frame* f) const
|
||||||
for ( unsigned int i = 0; i < v_vec->Size(); ++i )
|
for ( unsigned int i = 0; i < v_vec->Size(); ++i )
|
||||||
{
|
{
|
||||||
auto elt = v_vec->ValAt(i);
|
auto elt = v_vec->ValAt(i);
|
||||||
v_vec->Assign(i, DoSingleEval(f, elt.get()));
|
if ( elt )
|
||||||
|
v_vec->Assign(i, DoSingleEval(f, elt.get()));
|
||||||
}
|
}
|
||||||
|
|
||||||
op->Assign(f, std::move(v_vec));
|
op->Assign(f, std::move(v_vec));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue