fs/mmap/fs_rammap.c: Remove void * arithmetic
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
parent
3577d2f055
commit
6db295481b
|
@ -62,7 +62,7 @@ static int unmap_rammap(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");
|
||||
|
|
Loading…
Reference in New Issue