Skip to content

Commit 69f1867

Browse files
committed
builtinimport: Fix thinko passing 0 vs NULL.
1 parent 8c63ef1 commit 69f1867

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/runtime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ mp_obj_t mp_import_from(mp_obj_t module, qstr name) {
10781078
args[1] = mp_const_none; // TODO should be globals
10791079
args[2] = mp_const_none; // TODO should be locals
10801080
args[3] = mp_const_true; // Pass sentinel "non empty" value to force returning of leaf module
1081-
args[4] = 0;
1081+
args[4] = MP_OBJ_NEW_SMALL_INT(0);
10821082

10831083
// TODO lookup __import__ and call that instead of going straight to builtin implementation
10841084
return mp_builtin___import__(5, args);

0 commit comments

Comments
 (0)