summaryrefslogtreecommitdiffstatshomepage
path: root/py/objfun.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-26 17:41:46 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-26 17:41:46 +0000
commit5bd56fbf132585ece9ac5d5a72d569f62fe4a42c (patch)
treec50675c0d809f52190dde7e30382e5cb37879038 /py/objfun.c
parent75abee206d1a575aa98a486d043c94d64df432c1 (diff)
parent4795c58f3cfacb20e3b991fec7b78d59a8dcabff (diff)
downloadmicropython-5bd56fbf132585ece9ac5d5a72d569f62fe4a42c.tar.gz
micropython-5bd56fbf132585ece9ac5d5a72d569f62fe4a42c.zip
Merge branch 'master' of github.com:micropython/micropython
Diffstat (limited to 'py/objfun.c')
-rw-r--r--py/objfun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objfun.c b/py/objfun.c
index 1f6ad68ea4..fe4f49430e 100644
--- a/py/objfun.c
+++ b/py/objfun.c
@@ -63,7 +63,7 @@ mp_obj_t fun_native_call(mp_obj_t self_in, uint n_args, uint n_kw, const mp_obj_
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