commit | 9d95a2b21d79dc7eebfae9bf6d6dfd69388329f4 | [log] [tgz] |
---|---|---|
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | Sun Jan 26 01:58:51 2014 +0200 |
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | Sun Jan 26 02:03:07 2014 +0200 |
tree | b8f11ed5ba73c689c2ffe3f1949fe1c61d2aef99 | |
parent | 2ca84aa01edd1f955df3fe9cd581f1a421f89a79 [diff] [blame] |
Functions of fixed number of args are special-cased only for 3 or less args.
diff --git a/py/objfun.c b/py/objfun.c index 1f6ad68..fe4f494 100644 --- a/py/objfun.c +++ b/py/objfun.c
@@ -63,7 +63,7 @@ return res; - } else if (self->n_args_min == self->n_args_max) { + } else if (self->n_args_min <= 3 && self->n_args_min == self->n_args_max) { // function requires a fixed number of arguments // dispatch function call