mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 03:05:40 +08:00
fs/mmap/fs_anonmap.c: Remove void * arithmetic
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
committed by
Xiang Xiao
parent
1f95cfdde8
commit
3577d2f055
@@ -51,7 +51,7 @@ static int unmap_anonymous(FAR struct task_group_s *group,
|
|||||||
* simulate the unmapping.
|
* simulate the unmapping.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
offset = start - entry->vaddr;
|
offset = (uintptr_t)start - (uintptr_t)entry->vaddr;
|
||||||
if (offset + length < entry->length)
|
if (offset + length < entry->length)
|
||||||
{
|
{
|
||||||
ferr("ERROR: Cannot umap without unmapping to the end\n");
|
ferr("ERROR: Cannot umap without unmapping to the end\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user