summaryrefslogtreecommitdiff
path: root/interpret.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-12-17 20:43:40 +0200
committerArnold D. Robbins <arnold@skeeve.com>2016-12-17 20:43:40 +0200
commitb76409d4d7fe75c018a80c685668cb65769a613c (patch)
treefdea7f02dd5bc7a7a4de8fb8d544b5be9eaed291 /interpret.h
parent570758ee453fb42451f52a451e75d0a51c732cde (diff)
downloadgawk-b76409d4d7fe75c018a80c685668cb65769a613c.tar.gz
Further api doc updates. Simplify lint checking for max args.
Diffstat (limited to 'interpret.h')
-rw-r--r--interpret.h2
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);