mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
Merge remote-tracking branch 'origin/topic/jsiwek/table-init-container-ctors'
* origin/topic/jsiwek/table-init-container-ctors: Add test of record() constructor to table initializer unit test. Fix table(), set(), vector() constructors in table initializer lists. Closes #5.
This commit is contained in:
commit
d4792dc7fe
6 changed files with 191 additions and 7 deletions
|
@ -3117,6 +3117,9 @@ void VectorVal::ValDescribe(ODesc* d) const
|
|||
|
||||
Val* check_and_promote(Val* v, const BroType* t, int is_init)
|
||||
{
|
||||
if ( ! v )
|
||||
return 0;
|
||||
|
||||
BroType* vt = v->Type();
|
||||
|
||||
vt = flatten_type(vt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue