diff options
author | Damien George <damien.p.george@gmail.com> | 2014-09-29 16:26:39 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-09-29 19:42:06 +0100 |
commit | a7329615eb5b55869ae8a460f9b9be5be04a5bee (patch) | |
tree | 3045704c6761821705ca6208d9a913125106e3d6 /py/objfun.c | |
parent | 0b610de017f01c40a055f79db3837f51f903b4d6 (diff) | |
download | micropython-a7329615eb5b55869ae8a460f9b9be5be04a5bee.tar.gz micropython-a7329615eb5b55869ae8a460f9b9be5be04a5bee.zip |
py: Fix types, uint -> mp_uint_t.
Diffstat (limited to 'py/objfun.c')
-rw-r--r-- | py/objfun.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/py/objfun.c b/py/objfun.c index eb89a78a07..49c67c7f7a 100644 --- a/py/objfun.c +++ b/py/objfun.c @@ -472,7 +472,7 @@ STATIC mp_uint_t convert_obj_for_inline_asm(mp_obj_t obj) { return 1; } else if (MP_OBJ_IS_STR(obj)) { // pointer to the string (it's probably constant though!) - uint l; + mp_uint_t l; return (mp_uint_t)mp_obj_str_get_data(obj, &l); } else { mp_obj_type_t *type = mp_obj_get_type(obj); @@ -484,13 +484,13 @@ STATIC mp_uint_t convert_obj_for_inline_asm(mp_obj_t obj) { #endif } else if (type == &mp_type_tuple) { // pointer to start of tuple (could pass length, but then could use len(x) for that) - uint len; + mp_uint_t len; mp_obj_t *items; mp_obj_tuple_get(obj, &len, &items); return (mp_uint_t)items; } else if (type == &mp_type_list) { // pointer to start of list (could pass length, but then could use len(x) for that) - uint len; + mp_uint_t len; mp_obj_t *items; mp_obj_list_get(obj, &len, &items); return (mp_uint_t)items; |