Commit 9d95a2b2 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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

parent 2ca84aa0
...@@ -63,7 +63,7 @@ mp_obj_t fun_native_call(mp_obj_t self_in, uint n_args, uint n_kw, const mp_obj_ ...@@ -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; 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 // function requires a fixed number of arguments
// dispatch function call // dispatch function call
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment