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/objexcept.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/objexcept.c')
-rw-r--r-- | py/objexcept.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objexcept.c b/py/objexcept.c index 6e28a980b..83aa5286c 100644 --- a/py/objexcept.c +++ b/py/objexcept.c @@ -153,7 +153,7 @@ STATIC void exception_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) { } } -STATIC mp_obj_t exc___init__(mp_uint_t n_args, const mp_obj_t *args) { +STATIC mp_obj_t exc___init__(size_t n_args, const mp_obj_t *args) { mp_obj_exception_t *self = MP_OBJ_TO_PTR(args[0]); mp_obj_t argst = mp_obj_new_tuple(n_args - 1, args + 1); self->args = MP_OBJ_TO_PTR(argst); |