mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
Functions of fixed number of args are special-cased only for 3 or less args.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user