diff options
author | Damien George <damien.p.george@gmail.com> | 2014-05-25 22:27:57 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-05-25 22:27:57 +0100 |
commit | 2617eebf2ff77e58f415162300747eaf1a5ab5d7 (patch) | |
tree | 7065586f59aa181b70b4721363ff7c7677f8e772 /py/builtinimport.c | |
parent | f88fc7bd23c7bab257a01857c6f4683ce491f78c (diff) |
Change const byte* to const char* where sensible.
This removes need for some casts (at least, more than it adds need
for new casts!).
Diffstat (limited to 'py/builtinimport.c')
-rw-r--r-- | py/builtinimport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/builtinimport.c b/py/builtinimport.c index fa1a8397e..50780c01d 100644 --- a/py/builtinimport.c +++ b/py/builtinimport.c @@ -318,7 +318,7 @@ mp_obj_t mp_builtin___import__(uint n_args, mp_obj_t *args) { DEBUG_printf("%s is dir\n", vstr_str(&path)); // https://docs.python.org/3.3/reference/import.html // "Specifically, any module that contains a __path__ attribute is considered a package." - mp_store_attr(module_obj, MP_QSTR___path__, mp_obj_new_str((byte*)vstr_str(&path), vstr_len(&path), false)); + mp_store_attr(module_obj, MP_QSTR___path__, mp_obj_new_str(vstr_str(&path), vstr_len(&path), false)); vstr_add_char(&path, PATH_SEP_CHAR); vstr_add_str(&path, "__init__.py"); if (mp_import_stat(vstr_str(&path)) != MP_IMPORT_STAT_FILE) { |