From 1fea520248b42ca995c8797698c60301ea42ffe9 Mon Sep 17 00:00:00 2001 From: john haque Date: Sat, 20 Aug 2011 08:28:02 -0500 Subject: Speed/memory performance improvements. --- extension/ordchr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extension/ordchr.c') 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); -- cgit v1.2.3