Skip to content

Commit cb9c3a5

Browse files
committed
fix xAddress type
1 parent d6d84a6 commit cb9c3a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

portable/MemMang/heap_5.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ void vPortDefineHeapRegions( const HeapRegion_t * const pxHeapRegions )
445445
portPOINTER_SIZE_TYPE xAlignedHeap;
446446
size_t xTotalRegionSize, xTotalHeapSize = 0;
447447
BaseType_t xDefinedRegions = 0;
448-
size_t xAddress;
448+
portPOINTER_SIZE_TYPE xAddress;
449449
const HeapRegion_t * pxHeapRegion;
450450

451451
/* Can only call once! */
@@ -458,7 +458,7 @@ void vPortDefineHeapRegions( const HeapRegion_t * const pxHeapRegions )
458458
xTotalRegionSize = pxHeapRegion->xSizeInBytes;
459459

460460
/* Ensure the heap region starts on a correctly aligned boundary. */
461-
xAddress = ( size_t ) pxHeapRegion->pucStartAddress;
461+
xAddress = ( portPOINTER_SIZE_TYPE ) pxHeapRegion->pucStartAddress;
462462

463463
if( ( xAddress & portBYTE_ALIGNMENT_MASK ) != 0 )
464464
{

0 commit comments

Comments
 (0)