Change the macro from portMAX_DELAY to SIZE_MAX in order to initialize size_t-type variable correctly (#1310)
diff --git a/portable/MemMang/heap_4.c b/portable/MemMang/heap_4.c index acb3347..50af15d 100644 --- a/portable/MemMang/heap_4.c +++ b/portable/MemMang/heap_4.c
@@ -572,7 +572,7 @@ void vPortGetHeapStats( HeapStats_t * pxHeapStats ) { BlockLink_t * pxBlock; - size_t xBlocks = 0, xMaxSize = 0, xMinSize = portMAX_DELAY; /* portMAX_DELAY used as a portable way of getting the maximum value. */ + size_t xBlocks = 0, xMaxSize = 0, xMinSize = SIZE_MAX; vTaskSuspendAll(); {
diff --git a/portable/MemMang/heap_5.c b/portable/MemMang/heap_5.c index 4e872f6..bf32130 100644 --- a/portable/MemMang/heap_5.c +++ b/portable/MemMang/heap_5.c
@@ -672,7 +672,7 @@ void vPortGetHeapStats( HeapStats_t * pxHeapStats ) { BlockLink_t * pxBlock; - size_t xBlocks = 0, xMaxSize = 0, xMinSize = portMAX_DELAY; /* portMAX_DELAY used as a portable way of getting the maximum value. */ + size_t xBlocks = 0, xMaxSize = 0, xMinSize = SIZE_MAX; vTaskSuspendAll(); {