From ca06fac4a1d3bc0a4b8178e11504d44a86c955ef Mon Sep 17 00:00:00 2001 From: Damien George <damien.p.george@gmail.com> Date: Sun, 26 Mar 2017 17:18:49 +1100 Subject: [PATCH] stmhal: Update to use size_t for tuple/list accessors. --- stmhal/can.c | 4 ++-- stmhal/modutime.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stmhal/can.c b/stmhal/can.c index 9b8f2a071..09861ec73 100644 --- a/stmhal/can.c +++ b/stmhal/can.c @@ -631,8 +631,8 @@ STATIC mp_obj_t pyb_can_setfilter(mp_uint_t n_args, const mp_obj_t *pos_args, mp mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)]; mp_arg_parse_all(n_args - 1, pos_args + 1, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args); - mp_uint_t len; - mp_uint_t rtr_len; + size_t len; + size_t rtr_len; mp_uint_t rtr_masks[4] = {0, 0, 0, 0}; mp_obj_t *rtr_flags; mp_obj_t *params; diff --git a/stmhal/modutime.c b/stmhal/modutime.c index 7f2c549bd..2c7245080 100644 --- a/stmhal/modutime.c +++ b/stmhal/modutime.c @@ -100,7 +100,7 @@ MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(time_localtime_obj, 0, 1, time_localtime); /// the number of seconds since Jan 1, 2000. STATIC mp_obj_t time_mktime(mp_obj_t tuple) { - mp_uint_t len; + size_t len; mp_obj_t *elem; mp_obj_get_array(tuple, &len, &elem); -- GitLab