mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Merge remote-tracking branch 'origin/topic/bernhard/vector-assignment'
Closes #956. * origin/topic/bernhard/vector-assignment: change vector assignment operator and remove unnecessary argument (expr)
This commit is contained in:
commit
a4e40bb402
18 changed files with 74 additions and 70 deletions
|
@ -371,7 +371,7 @@ void StateAccess::Replay()
|
|||
|
||||
CheckOld("index assign", target.id, op1.val, op3,
|
||||
v->AsVectorVal()->Lookup(index));
|
||||
v->AsVectorVal()->Assign(index, op2 ? op2->Ref() : 0, 0);
|
||||
v->AsVectorVal()->Assign(index, op2 ? op2->Ref() : 0);
|
||||
}
|
||||
|
||||
else
|
||||
|
@ -421,7 +421,7 @@ void StateAccess::Replay()
|
|||
Val* lookup_op1 = v->AsVectorVal()->Lookup(index);
|
||||
int delta = lookup_op1->CoerceToInt() + amount;
|
||||
Val* new_val = new Val(delta, t);
|
||||
v->AsVectorVal()->Assign(index, new_val, 0);
|
||||
v->AsVectorVal()->Assign(index, new_val);
|
||||
}
|
||||
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue