Skip to content

Commit 8becca7

Browse files
committed
py: mp_builtin___import__(): Add const to arg type.
1 parent 8456cc0 commit 8becca7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

py/builtin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* THE SOFTWARE.
2525
*/
2626

27-
mp_obj_t mp_builtin___import__(mp_uint_t n_args, mp_obj_t *args);
27+
mp_obj_t mp_builtin___import__(mp_uint_t n_args, const mp_obj_t *args);
2828
mp_obj_t mp_builtin_open(mp_uint_t n_args, const mp_obj_t *args, mp_map_t *kwargs);
2929

3030
MP_DECLARE_CONST_FUN_OBJ(mp_builtin___build_class___obj);

py/builtinimport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ STATIC void do_load(mp_obj_t module_obj, vstr_t *file) {
122122
mp_parse_compile_execute(lex, MP_PARSE_FILE_INPUT, mod_globals, mod_globals);
123123
}
124124

125-
mp_obj_t mp_builtin___import__(mp_uint_t n_args, mp_obj_t *args) {
125+
mp_obj_t mp_builtin___import__(mp_uint_t n_args, const mp_obj_t *args) {
126126
#if DEBUG_PRINT
127127
DEBUG_printf("__import__:\n");
128128
for (mp_uint_t i = 0; i < n_args; i++) {

0 commit comments

Comments
 (0)