mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 03:28:19 +00:00
Fix clang-tidy modernize-use-bool-literals findings
This commit is contained in:
parent
17c14a3ce1
commit
0227e3a545
6 changed files with 6 additions and 5 deletions
|
@ -269,7 +269,7 @@ bool SortZBI::Build(ZAMCompiler* zam, const NameExpr* n, const ExprPList& args)
|
|||
auto comp_func = comp_val->AsNameExpr();
|
||||
auto comp_type = comp_func->GetType()->AsFuncType();
|
||||
|
||||
if ( comp_type->Yield()->Tag() != TYPE_INT || ! comp_type->ParamList()->AllMatch(elt_type, 0) ||
|
||||
if ( comp_type->Yield()->Tag() != TYPE_INT || ! comp_type->ParamList()->AllMatch(elt_type, false) ||
|
||||
comp_type->ParamList()->GetTypes().size() != 2 )
|
||||
return false;
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ void ZInst::Dump(FILE* f, const string& prefix, const string& id1, const string&
|
|||
const string& id4) const {
|
||||
fprintf(f, "%s ", ZOP_name(op));
|
||||
// fprintf(f, "(%s) ", op_type_name(op_type));
|
||||
if ( t && 0 )
|
||||
if ( t && false )
|
||||
fprintf(f, "(%s) ", type_name(t->Tag()));
|
||||
|
||||
switch ( op_type ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue