aboutsummaryrefslogtreecommitdiffstats
path: root/ext.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext.c')
-rw-r--r--ext.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext.c b/ext.c
index 10a42210..b6447c5a 100644
--- a/ext.c
+++ b/ext.c
@@ -136,7 +136,8 @@ make_builtin(const awk_ext_func_t *funcinfo)
b = bcalloc(Op_symbol, 1, 0);
b->extfunc = funcinfo->function;
- b->expr_count = count;
+ b->min_required = funcinfo->min_required_args;
+ b->max_expected = funcinfo->max_expected_args;
/* NB: extension sub must return something */