Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment