diff options
author | Damien George <damien.p.george@gmail.com> | 2016-01-03 14:21:40 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-01-11 00:49:27 +0000 |
commit | 4b72b3a133ea87a1ef8b964508dc25c551ccf093 (patch) | |
tree | e00ae8b891475f1a5d76bd2401d20a4dfb26e1e1 /py/objtuple.c | |
parent | a0c97814dfcb0debbde8be99539e3d5ca2334e54 (diff) |
py: Change type signature of builtin funs that take variable or kw args.
With this patch the n_args parameter is changed type from mp_uint_t to
size_t.
Diffstat (limited to 'py/objtuple.c')
-rw-r--r-- | py/objtuple.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objtuple.c b/py/objtuple.c index 8337b6704..86720ed37 100644 --- a/py/objtuple.c +++ b/py/objtuple.c @@ -208,7 +208,7 @@ STATIC mp_obj_t tuple_count(mp_obj_t self_in, mp_obj_t value) { } STATIC MP_DEFINE_CONST_FUN_OBJ_2(tuple_count_obj, tuple_count); -STATIC mp_obj_t tuple_index(mp_uint_t n_args, const mp_obj_t *args) { +STATIC mp_obj_t tuple_index(size_t n_args, const mp_obj_t *args) { assert(MP_OBJ_IS_TYPE(args[0], &mp_type_tuple)); mp_obj_tuple_t *self = MP_OBJ_TO_PTR(args[0]); return mp_seq_index_obj(self->items, self->len, n_args, args); |