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:
guoshichao 2024-08-03 11:52:55 +08:00 committed by archer
parent 012dcc41a2
commit f01a2c70fd

View File

@ -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;