mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Make nearly all bool operators explicit.
These are a bit dangerous because the casting can happen in quite unexpected circumstances and lead to undesirable comparison results.
This commit is contained in:
parent
5ed5587b5c
commit
41285abea5
7 changed files with 7 additions and 7 deletions
|
@ -448,7 +448,7 @@ bool Manager::IsDisabled(analyzer::Tag tag)
|
|||
if ( ! disabled )
|
||||
disabled = internal_const_val("Files::disable")->AsTableVal();
|
||||
|
||||
Val* index = new Val(tag, TYPE_COUNT);
|
||||
Val* index = new Val(bool(tag), TYPE_COUNT);
|
||||
Val* yield = disabled->Lookup(index);
|
||||
Unref(index);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue