mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 09:45:55 +08:00
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:
+2
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user