py/objarray: Convert mp_uint_t to size_t where appropriate.

This commit is contained in:
Damien George
2017-02-16 16:31:43 +11:00
parent c0d9500eee
commit ccc5254224
3 changed files with 22 additions and 22 deletions

View File

@@ -32,11 +32,11 @@
typedef struct _mp_obj_array_t {
mp_obj_base_t base;
mp_uint_t typecode : 8;
size_t typecode : 8;
// free is number of unused elements after len used elements
// alloc size = len + free
mp_uint_t free : (8 * sizeof(mp_uint_t) - 8);
mp_uint_t len; // in elements
size_t free : (8 * sizeof(size_t) - 8);
size_t len; // in elements
void *items;
} mp_obj_array_t;