summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-06-19 00:26:57 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-06-19 00:26:57 +0300
commitefee5773185ded1d8360c9a785d205aec0ce01f0 (patch)
tree6fa0256339affaaea300f4a89815d5ca9a658d86
parente68811dbbf3dcf76b36ad27e07d8deb9fed34297 (diff)
downloadmicropython-efee5773185ded1d8360c9a785d205aec0ce01f0.tar.gz
micropython-efee5773185ded1d8360c9a785d205aec0ce01f0.zip
extmod/machine_pinbase: Fix nanbox build.
MP_ROM_PTR() is only for data structures initialization, code should use MP_OBJ_FROM_PTR().
-rw-r--r--extmod/machine_pinbase.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/machine_pinbase.c b/extmod/machine_pinbase.c
index dd07e7fe8f..3c1f094834 100644
--- a/extmod/machine_pinbase.c
+++ b/extmod/machine_pinbase.c
@@ -51,7 +51,7 @@ STATIC mp_obj_t pinbase_make_new(const mp_obj_type_t *type, size_t n_args, size_
(void)n_args;
(void)n_kw;
(void)args;
- return MP_ROM_PTR(&pinbase_singleton);
+ return MP_OBJ_FROM_PTR(&pinbase_singleton);
}
mp_uint_t pinbase_ioctl(mp_obj_t obj, mp_uint_t request, uintptr_t arg, int *errcode);