Functions of fixed number of args are special-cased only for 3 or less args.

This commit is contained in:
Paul Sokolovsky 2014-01-26 01:58:51 +02:00
parent 2ca84aa01e
commit 9d95a2b21d

View File

@ -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