Commit 69f1867d authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

builtinimport: Fix thinko passing 0 vs NULL.

parent 8c63ef18
......@@ -1078,7 +1078,7 @@ import_error:
args[1] = mp_const_none; // TODO should be globals
args[2] = mp_const_none; // TODO should be locals
args[3] = mp_const_true; // Pass sentinel "non empty" value to force returning of leaf module
args[4] = 0;
args[4] = MP_OBJ_NEW_SMALL_INT(0);
// TODO lookup __import__ and call that instead of going straight to builtin implementation
return mp_builtin___import__(5, args);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment