acassis commented on code in PR #12923:
URL: https://github.com/apache/nuttx/pull/12923#discussion_r1718671155


##########
mm/map/vm_region.c:
##########
@@ -125,7 +125,7 @@ FAR void *vm_map_region(uintptr_t paddr, size_t size)
         }
     }
 
-  return vaddr + (MM_PGMASK & paddr);
+  return (void *)((uintptr_t)vaddr + (MM_PGMASK & paddr));
 
 error:
   if (i)   /* undo alway mapped pages */

Review Comment:
   Please fix the original issue that was in the file moving the comment to 
inside the: if (i) { /* here */ ... }



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to