summaryrefslogtreecommitdiff
path: root/nuttx/mm/mm_initialize.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/mm/mm_initialize.c')
-rw-r--r--nuttx/mm/mm_initialize.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/mm/mm_initialize.c b/nuttx/mm/mm_initialize.c
index a16ac9b0e..4bf24a70b 100644
--- a/nuttx/mm/mm_initialize.c
+++ b/nuttx/mm/mm_initialize.c
@@ -50,7 +50,7 @@
/* This is the size of the heap provided to mm */
-uint32 g_heapsize;
+size_t g_heapsize;
/* This is the first and last nodes of the heap */
@@ -97,8 +97,8 @@ void mm_initialize(void *heapstart, size_t heapsize)
* both aligned with the MM_MIN_CHUNK size.
*/
- uint32 heapbase = MM_ALIGN_UP((uint32)heapstart);
- uint32 heapend = MM_ALIGN_DOWN((uint32)heapstart + (uint32)heapsize);
+ size_t heapbase = MM_ALIGN_UP((size_t)heapstart);
+ size_t heapend = MM_ALIGN_DOWN((size_t)heapstart + (size_t)heapsize);
/* Save the size of the heap */