greenhills: fix the enumerated type mixed using warning
CC: obstack/lib_obstack_printf.c "mmap/fs_rammap.c", line 126: warning #188-D: enumerated type mixed with another type enum mm_map_type_e type = (uintptr_t)entry->priv.p & 3; ^ Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
parent
012dcc41a2
commit
f01a2c70fd
@ -125,7 +125,8 @@ static int unmap_rammap(FAR struct task_group_s *group,
|
||||
size_t length)
|
||||
{
|
||||
FAR struct file *filep = (FAR void *)((uintptr_t)entry->priv.p & ~3);
|
||||
enum mm_map_type_e type = (uintptr_t)entry->priv.p & 3;
|
||||
enum mm_map_type_e type =
|
||||
(enum mm_map_type_e)((uintptr_t)entry->priv.p & 3);
|
||||
FAR void *newaddr = NULL;
|
||||
off_t offset;
|
||||
int ret = OK;
|
||||
|
Loading…
Reference in New Issue
Block a user