From 229823942c79b1233c43dc155bae01c20a8cec57 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 16 Feb 2017 16:09:51 +1100 Subject: py/objtuple: Convert mp_uint_t to size_t where appropriate. --- py/objtuple.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'py/objtuple.h') diff --git a/py/objtuple.h b/py/objtuple.h index ebfc5c406..760135f86 100644 --- a/py/objtuple.h +++ b/py/objtuple.h @@ -30,13 +30,13 @@ typedef struct _mp_obj_tuple_t { mp_obj_base_t base; - mp_uint_t len; + size_t len; mp_obj_t items[]; } mp_obj_tuple_t; typedef struct _mp_rom_obj_tuple_t { mp_obj_base_t base; - mp_uint_t len; + size_t len; mp_rom_obj_t items[]; } mp_rom_obj_tuple_t; @@ -59,6 +59,6 @@ extern const mp_obj_type_t mp_type_attrtuple; void mp_obj_attrtuple_print_helper(const mp_print_t *print, const qstr *fields, mp_obj_tuple_t *o); #endif -mp_obj_t mp_obj_new_attrtuple(const qstr *fields, mp_uint_t n, const mp_obj_t *items); +mp_obj_t mp_obj_new_attrtuple(const qstr *fields, size_t n, const mp_obj_t *items); #endif // __MICROPY_INCLUDED_PY_OBJTUPLE_H__ -- cgit v1.2.3