stmhal: Update to use size_t for tuple/list accessors.

This commit is contained in:
Damien George 2017-03-26 17:18:49 +11:00
parent 1d7e3113db
commit ca06fac4a1
2 changed files with 3 additions and 3 deletions

View File

@ -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_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_arg_parse_all(n_args - 1, pos_args + 1, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);
mp_uint_t len; size_t len;
mp_uint_t rtr_len; size_t rtr_len;
mp_uint_t rtr_masks[4] = {0, 0, 0, 0}; mp_uint_t rtr_masks[4] = {0, 0, 0, 0};
mp_obj_t *rtr_flags; mp_obj_t *rtr_flags;
mp_obj_t *params; mp_obj_t *params;

View File

@ -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. /// the number of seconds since Jan 1, 2000.
STATIC mp_obj_t time_mktime(mp_obj_t tuple) { STATIC mp_obj_t time_mktime(mp_obj_t tuple) {
mp_uint_t len; size_t len;
mp_obj_t *elem; mp_obj_t *elem;
mp_obj_get_array(tuple, &len, &elem); mp_obj_get_array(tuple, &len, &elem);