mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 11:38:20 +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
|
@ -2107,7 +2107,7 @@ Val* Manager::ValueToVal(const Value* val, BroType* request_type)
|
|||
VectorType* vt = new VectorType(type->Ref());
|
||||
VectorVal* v = new VectorVal(vt);
|
||||
for ( int i = 0; i < val->val.vector_val.size; i++ )
|
||||
v->Assign(i, ValueToVal( val->val.set_val.vals[i], type ), 0);
|
||||
v->Assign(i, ValueToVal( val->val.set_val.vals[i], type ));
|
||||
|
||||
Unref(vt);
|
||||
return v;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue