summaryrefslogtreecommitdiffstatshomepage
path: root/py/objfun.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-02-26 17:47:05 +0000
committerDamien George <damien.p.george@gmail.com>2014-02-26 17:47:05 +0000
commitd5e81826ecc20ae3f862b7a6ae469990fd4c5b38 (patch)
treedc5e144d0fc9a633842c7930bef7b9c1293e9de1 /py/objfun.c
parent510477557d1cd13dc3cfdebf32338aa1b75180cb (diff)
downloadmicropython-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.c2
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;
}