mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Remove dead check in Val::check_and_promote. (Coverity 1401810)
This commit is contained in:
parent
c009cd3289
commit
53c82cc872
1 changed files with 0 additions and 2 deletions
|
@ -2998,8 +2998,6 @@ Val* check_and_promote(Val* v, const BroType* t, int is_init, const Location* ex
|
|||
}
|
||||
else if ( t_tag == TYPE_INT )
|
||||
promoted_v = val_mgr->GetInt(v->CoerceToInt());
|
||||
else if ( t_tag == TYPE_BOOL )
|
||||
promoted_v = val_mgr->GetBool(v->CoerceToInt());
|
||||
else // enum
|
||||
{
|
||||
reporter->InternalError("bad internal type in check_and_promote()");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue