Fix the value width issue under 32/64 bit arch.

This commit is contained in:
Bernard Xiong
2018-12-13 14:54:26 +08:00
parent dcf7bce2cc
commit 1f37de29c4
6 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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);