diff options
| author | Hao Zhu <[email protected]> | 2018-12-14 08:47:54 +0800 |
|---|---|---|
| committer | Hao Zhu <[email protected]> | 2018-12-14 08:47:54 +0800 |
| commit | 2fbced6f218da3cb809252c9ae248d08ed7838d3 (patch) | |
| tree | d64113744193106afbe8c109435077e80cd27b3f /components/dfs | |
| parent | 5053e744a3136171bc8840f23b2ae9b7abc5c102 (diff) | |
| parent | 698f9a91bdb4577f0d1e7823a7ece7863afd055b (diff) | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'components/dfs')
| -rw-r--r-- | components/dfs/src/dfs_file.c | 2 | ||||
| -rw-r--r-- | components/dfs/src/poll.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/components/dfs/src/dfs_file.c b/components/dfs/src/dfs_file.c index 646ae58e36..e7071522ce 100644 --- a/components/dfs/src/dfs_file.c +++ b/components/dfs/src/dfs_file.c @@ -171,7 +171,7 @@ int dfs_file_ioctl(struct dfs_fd *fd, int cmd, void *args) return fd->flags; /* return flags */ case F_SETFL: { - int flags = (int)args; + int flags = (int)(rt_base_t)args; int mask = O_NONBLOCK | O_APPEND; flags &= mask; diff --git a/components/dfs/src/poll.c b/components/dfs/src/poll.c index 6655a8a667..6f83762082 100644 --- a/components/dfs/src/poll.c +++ b/components/dfs/src/poll.c @@ -40,7 +40,7 @@ static int __wqueue_pollwake(struct rt_wqueue_node *wait, void *key) { struct rt_poll_node *pn; - if (key && !((rt_uint32_t)key & wait->key)) + if (key && !((rt_ubase_t)key & wait->key)) return -1; pn = rt_container_of(wait, struct rt_poll_node, wqn); |
