From 514879e33cdb7a40f15fa9a123012de08064a212 Mon Sep 17 00:00:00 2001 From: jasonhu <2323168280@qq.com> Date: Wed, 8 Dec 2021 09:43:16 +0800 Subject: [PATCH] [dfs] fix compile error on romfs ioctl --- components/dfs/filesystems/romfs/dfs_romfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/dfs/filesystems/romfs/dfs_romfs.c b/components/dfs/filesystems/romfs/dfs_romfs.c index 27a513591b..086267ecef 100644 --- a/components/dfs/filesystems/romfs/dfs_romfs.c +++ b/components/dfs/filesystems/romfs/dfs_romfs.c @@ -44,7 +44,7 @@ int dfs_romfs_ioctl(struct dfs_fd *file, int cmd, void *args) { case RT_FIOGETADDR: { - *(rt_uint32_t*)args = (rt_uint32_t)dirent->data; + *(rt_ubase_t*)args = (rt_ubase_t)dirent->data; break; } case RT_FIOFTRUNCATE: -- Gitee