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/builtinimport.c | |
parent | ca06fac4a1d3bc0a4b8178e11504d44a86c955ef (diff) | |
download | micropython-6b341075376705ee1fe9e003b76b09afa59778f4.tar.gz micropython-6b341075376705ee1fe9e003b76b09afa59778f4.zip |
py: Change mp_uint_t to size_t for mp_obj_str_get_data len arg.
Diffstat (limited to 'py/builtinimport.c')
-rw-r--r-- | py/builtinimport.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/py/builtinimport.c b/py/builtinimport.c index 8101d633fe..cf17d53053 100644 --- a/py/builtinimport.c +++ b/py/builtinimport.c @@ -111,7 +111,7 @@ STATIC mp_import_stat_t find_file(const char *file_str, uint file_len, vstr_t *d // go through each path looking for a directory or file for (mp_uint_t i = 0; i < path_num; i++) { vstr_reset(dest); - mp_uint_t p_len; + size_t p_len; const char *p = mp_obj_str_get_data(path_items[i], &p_len); if (p_len > 0) { vstr_add_strn(dest, p, p_len); @@ -265,7 +265,7 @@ mp_obj_t mp_builtin___import__(size_t n_args, const mp_obj_t *args) { } } - mp_uint_t mod_len; + size_t mod_len; const char *mod_str = mp_obj_str_get_data(module_name, &mod_len); if (level != 0) { @@ -296,7 +296,7 @@ mp_obj_t mp_builtin___import__(size_t n_args, const mp_obj_t *args) { DEBUG_printf("\n"); #endif - mp_uint_t this_name_l; + size_t this_name_l; const char *this_name = mp_obj_str_get_data(this_name_q, &this_name_l); const char *p = this_name + this_name_l; |