bifcl: Pass boolean false to BuiltinFunc constructor instead of zero

This fixes a modernize-use-bool-literals clang-tidy warning in the
generated code.
This commit is contained in:
Tim Wojtulewicz 2025-05-15 17:21:58 -07:00
parent c30aa7a903
commit 7026938082

View file

@ -584,7 +584,7 @@ head_1: TOK_ID opt_ws arg_begin
if ( definition_type == FUNC_DEF )
{
fprintf(fp_func_init,
"\t(void) new zeek::detail::BuiltinFunc(zeek::%s_bif, \"%s\", 0);\n",
"\t(void) new zeek::detail::BuiltinFunc(zeek::%s_bif, \"%s\", false);\n",
decl.c_fullname.c_str(), decl.zeek_fullname.c_str());
// This is the "canonical" version, with argument type and order