From 8becca7c8289bbadf33abdb6b59618b214a90a30 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 25 Oct 2014 21:03:20 +0300 Subject: py: mp_builtin___import__(): Add const to arg type. --- py/builtinimport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/builtinimport.c') diff --git a/py/builtinimport.c b/py/builtinimport.c index 1272d5941..0eaa25003 100644 --- a/py/builtinimport.c +++ b/py/builtinimport.c @@ -122,7 +122,7 @@ STATIC void do_load(mp_obj_t module_obj, vstr_t *file) { mp_parse_compile_execute(lex, MP_PARSE_FILE_INPUT, mod_globals, mod_globals); } -mp_obj_t mp_builtin___import__(mp_uint_t n_args, mp_obj_t *args) { +mp_obj_t mp_builtin___import__(mp_uint_t n_args, const mp_obj_t *args) { #if DEBUG_PRINT DEBUG_printf("__import__:\n"); for (mp_uint_t i = 0; i < n_args; i++) { -- cgit v1.2.3