diff options
author | Damien George <damien.p.george@gmail.com> | 2017-03-25 19:48:18 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-03-29 12:56:45 +1100 |
commit | 6b341075376705ee1fe9e003b76b09afa59778f4 (patch) | |
tree | 2bcf12db2528b718692b7e9a6fc50547413b749f /py/objfun.c | |
parent | ca06fac4a1d3bc0a4b8178e11504d44a86c955ef (diff) |
py: Change mp_uint_t to size_t for mp_obj_str_get_data len arg.
Diffstat (limited to 'py/objfun.c')
-rw-r--r-- | py/objfun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objfun.c b/py/objfun.c index 2ce33cb21..08d031c8d 100644 --- a/py/objfun.c +++ b/py/objfun.c @@ -501,7 +501,7 @@ STATIC mp_uint_t convert_obj_for_inline_asm(mp_obj_t obj) { return mp_obj_int_get_truncated(obj); } else if (MP_OBJ_IS_STR(obj)) { // pointer to the string (it's probably constant though!) - mp_uint_t l; + size_t l; return (mp_uint_t)mp_obj_str_get_data(obj, &l); } else { mp_obj_type_t *type = mp_obj_get_type(obj); |