summaryrefslogtreecommitdiff
path: root/extmod/vfs_lfsx.c
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2020-06-25 16:31:33 +1000
committerDamien George <damien@micropython.org>2020-06-25 16:32:48 +1000
commit0c77668d11a0b8db7af57311828169e3fdc9678f (patch)
treee5470f0ea2c7b69dbc2a9e4461285fbbe710fc33 /extmod/vfs_lfsx.c
parent76faeed098ec4ee70202202cb11e64b78a77f14e (diff)
extmod/vfs_lfs: Fix littlefs bindings to build in nan-box mode.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'extmod/vfs_lfsx.c')
-rw-r--r--extmod/vfs_lfsx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/vfs_lfsx.c b/extmod/vfs_lfsx.c
index c62409678..24816433b 100644
--- a/extmod/vfs_lfsx.c
+++ b/extmod/vfs_lfsx.c
@@ -442,7 +442,7 @@ STATIC mp_import_stat_t MP_VFS_LFSx(import_stat)(void *self_in, const char *path
MP_OBJ_VFS_LFSx *self = self_in;
struct LFSx_API (info) info;
mp_obj_str_t path_obj = { { &mp_type_str }, 0, 0, (const byte *)path };
- path = MP_VFS_LFSx(make_path)(self, &path_obj);
+ path = MP_VFS_LFSx(make_path)(self, MP_OBJ_FROM_PTR(&path_obj));
int ret = LFSx_API(stat)(&self->lfs, path, &info);
if (ret == 0) {
if (info.type == LFSx_MACRO(_TYPE_REG)) {