diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-12 02:47:46 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-12 02:55:18 +0300 |
commit | 69f1867da59c812776db1fa9ef7bb13ba2c9674a (patch) | |
tree | a4319cb7c3c7dd1256b59b23c3930c54545e2b69 | |
parent | 8c63ef187d4b07afd2cb2d0d8df6a4e537ba15b0 (diff) | |
download | micropython-69f1867da59c812776db1fa9ef7bb13ba2c9674a.tar.gz micropython-69f1867da59c812776db1fa9ef7bb13ba2c9674a.zip |
builtinimport: Fix thinko passing 0 vs NULL.
-rw-r--r-- | py/runtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/runtime.c b/py/runtime.c index 4793f054a8..caf0804af4 100644 --- a/py/runtime.c +++ b/py/runtime.c @@ -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); |