From 3577d2f055156b2f97f75252fe185aa05c5e13aa Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Fri, 13 Jan 2023 14:52:11 +0400 Subject: [PATCH] fs/mmap/fs_anonmap.c: Remove void * arithmetic Signed-off-by: Jukka Laitinen --- fs/mmap/fs_anonmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/mmap/fs_anonmap.c b/fs/mmap/fs_anonmap.c index 9e53a49198b..595fcbf2027 100644 --- a/fs/mmap/fs_anonmap.c +++ b/fs/mmap/fs_anonmap.c @@ -51,7 +51,7 @@ static int unmap_anonymous(FAR struct task_group_s *group, * simulate the unmapping. */ - offset = start - entry->vaddr; + offset = (uintptr_t)start - (uintptr_t)entry->vaddr; if (offset + length < entry->length) { ferr("ERROR: Cannot umap without unmapping to the end\n");