mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 02:59:01 +01:00 
			
		
		
		
	Change the macro from portMAX_DELAY to SIZE_MAX in order to initialize size_t-type variable correctly (#1310)
This commit is contained in:
		
							parent
							
								
									43947413b9
								
							
						
					
					
						commit
						386c1bca66
					
				@ -572,7 +572,7 @@ static void prvInsertBlockIntoFreeList( BlockLink_t * pxBlockToInsert ) /* PRIVI
 | 
			
		||||
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();
 | 
			
		||||
    {
 | 
			
		||||
 | 
			
		||||
@ -672,7 +672,7 @@ void vPortDefineHeapRegions( const HeapRegion_t * const pxHeapRegions ) /* PRIVI
 | 
			
		||||
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();
 | 
			
		||||
    {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user