diff options
Diffstat (limited to 'extension/ordchr.c')
-rw-r--r-- | extension/ordchr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extension/ordchr.c b/extension/ordchr.c index efbc6d56..8926a949 100644 --- a/extension/ordchr.c +++ b/extension/ordchr.c @@ -40,7 +40,7 @@ do_ord(int nargs) NODE *str; int ret = -1; - if (do_lint && get_curfunc_arg_count() > 1) + if (do_lint && nargs > 1) lintwarn("ord: called with too many arguments"); str = get_scalar_argument(0, FALSE); @@ -67,7 +67,7 @@ do_chr(int nargs) str[0] = str[1] = '\0'; - if (do_lint && get_curfunc_arg_count() > 1) + if (do_lint && nargs > 1) lintwarn("chr: called with too many arguments"); num = get_scalar_argument(0, FALSE); |