mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Checkpoint for logging framework
This commit is contained in:
parent
aa0691ba21
commit
f3b148b019
5 changed files with 139 additions and 1 deletions
|
@ -3300,6 +3300,10 @@ Val* check_and_promote(Val* v, const BroType* t, int is_init)
|
|||
|
||||
TypeTag t_tag = t->Tag();
|
||||
TypeTag v_tag = vt->Tag();
|
||||
|
||||
// More thought definitely needs to go into this.
|
||||
if ( t_tag == TYPE_ANY || v_tag == TYPE_ANY )
|
||||
return v;
|
||||
|
||||
if ( ! EitherArithmetic(t_tag, v_tag) ||
|
||||
/* allow sets as initializers */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue