diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-12-17 20:43:40 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-12-17 20:43:40 +0200 |
commit | b76409d4d7fe75c018a80c685668cb65769a613c (patch) | |
tree | fdea7f02dd5bc7a7a4de8fb8d544b5be9eaed291 /interpret.h | |
parent | 570758ee453fb42451f52a451e75d0a51c732cde (diff) | |
download | egawk-b76409d4d7fe75c018a80c685668cb65769a613c.tar.gz egawk-b76409d4d7fe75c018a80c685668cb65769a613c.tar.bz2 egawk-b76409d4d7fe75c018a80c685668cb65769a613c.zip |
Further api doc updates. Simplify lint checking for max args.
Diffstat (limited to 'interpret.h')
-rw-r--r-- | interpret.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interpret.h b/interpret.h index 7a8db88d..1399e720 100644 --- a/interpret.h +++ b/interpret.h @@ -965,7 +965,7 @@ arrayfor: fatal(_("%s: called with %lu arguments, expecting at least %lu"), pc[1].func_name, arg_count, min_req); - if (do_lint && max_expect > 0 && arg_count > max_expect && ! f->suppress_lint) + if (do_lint && ! f->suppress_lint && arg_count > max_expect) lintwarn(_("%s: called with %lu arguments, expecting no more than %lu"), pc[1].func_name, arg_count, max_expect); |