diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-26 17:47:05 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-26 17:47:05 +0000 |
commit | d5e81826ecc20ae3f862b7a6ae469990fd4c5b38 (patch) | |
tree | dc5e144d0fc9a633842c7930bef7b9c1293e9de1 /py/objfun.c | |
parent | 510477557d1cd13dc3cfdebf32338aa1b75180cb (diff) | |
download | micropython-d5e81826ecc20ae3f862b7a6ae469990fd4c5b38.tar.gz micropython-d5e81826ecc20ae3f862b7a6ae469990fd4c5b38.zip |
py: Reduce size of mp_obj_fun_native_t struct by packing ints.
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; } |