mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
bug fixes for script optimization intermediate forms
This commit is contained in:
parent
c0f3403714
commit
4a5a7f975d
5 changed files with 36 additions and 14 deletions
|
@ -788,9 +788,12 @@ bool FuncType::CheckArgs(const std::vector<TypePtr>& args, bool is_init, bool do
|
|||
if ( my_args.size() != args.size() )
|
||||
{
|
||||
if ( do_warn )
|
||||
{
|
||||
Warn(util::fmt("Wrong number of arguments for function. Expected %zu, got %zu.",
|
||||
args.size(), my_args.size()));
|
||||
const_cast<FuncType*>(this)->reported_error = true;
|
||||
const_cast<FuncType*>(this)->reported_error = true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue