diff options
Diffstat (limited to 'py/objfun.c')
-rw-r--r-- | py/objfun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objfun.c b/py/objfun.c index 6cdc97cc6d..fa6a734d04 100644 --- a/py/objfun.c +++ b/py/objfun.c @@ -121,7 +121,7 @@ mp_obj_t rt_make_function_var(int n_args_min, mp_fun_var_t fun) { o->base.type = &fun_native_type; o->is_kw = false; o->n_args_min = n_args_min; - o->n_args_max = ~((machine_uint_t)0); + o->n_args_max = MP_OBJ_FUN_ARGS_MAX; o->fun = fun; return o; } |