diff options
author | Damien George <damien.p.george@gmail.com> | 2014-08-30 14:19:41 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-08-30 14:19:41 +0100 |
commit | d182b98a37bde34c06ae705624da03cf381eb4dc (patch) | |
tree | 0e7599a07d2c3ad17be2a3a708759c07e638a20d /py/objarray.c | |
parent | 9c4cbe2ac0ae4c51270f21ba9c974dd24f6b9d55 (diff) |
py: Change all uint to mp_uint_t in obj.h.
Part of code cleanup, working towards resolving issue #50.
Diffstat (limited to 'py/objarray.c')
-rw-r--r-- | py/objarray.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/py/objarray.c b/py/objarray.c index 4930b1832..6a3e862ba 100644 --- a/py/objarray.c +++ b/py/objarray.c @@ -108,7 +108,7 @@ STATIC mp_obj_t array_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n_k mp_arg_check_num(n_args, n_kw, 1, 2, false); // get typecode - uint l; + mp_uint_t l; const char *typecode = mp_obj_str_get_data(args[0], &l); if (n_args == 1) { @@ -277,7 +277,7 @@ STATIC mp_obj_array_t *array_new(char typecode, uint n) { return o; } -uint mp_obj_array_len(mp_obj_t self_in) { +mp_uint_t mp_obj_array_len(mp_obj_t self_in) { return ((mp_obj_array_t *)self_in)->len; } @@ -288,7 +288,7 @@ mp_obj_t mp_obj_new_bytearray(uint n, void *items) { } // Create bytearray which references specified memory area -mp_obj_t mp_obj_new_bytearray_by_ref(uint n, void *items) { +mp_obj_t mp_obj_new_bytearray_by_ref(mp_uint_t n, void *items) { mp_obj_array_t *o = m_new_obj(mp_obj_array_t); o->base.type = &mp_type_array; o->typecode = BYTEARRAY_TYPECODE; |