Checkpoint for logging framework

This commit is contained in:
Seth Hall 2011-01-19 09:36:06 -05:00
parent aa0691ba21
commit f3b148b019
5 changed files with 139 additions and 1 deletions

View file

@ -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 */