mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 02:59:01 +01:00 
			
		
		
		
	Add constanst suffix to prevent potential type conversion (#921)
Co-authored-by: Ubuntu <ubuntu@ip-172-31-34-245.ap-northeast-1.compute.internal>
This commit is contained in:
		
							parent
							
								
									5dbfd380f0
								
							
						
					
					
						commit
						a2712b5e38
					
				@ -91,7 +91,7 @@
 | 
			
		||||
    #define taskCHECK_FOR_STACK_OVERFLOW()                                                      \
 | 
			
		||||
    do {                                                                                        \
 | 
			
		||||
        const uint32_t * const pulStack = ( uint32_t * ) pxCurrentTCB->pxStack;                 \
 | 
			
		||||
        const uint32_t ulCheckValue = ( uint32_t ) 0xa5a5a5a5;                                  \
 | 
			
		||||
        const uint32_t ulCheckValue = ( uint32_t ) 0xa5a5a5a5U;                                 \
 | 
			
		||||
                                                                                                \
 | 
			
		||||
        if( ( pulStack[ 0 ] != ulCheckValue ) ||                                                \
 | 
			
		||||
            ( pulStack[ 1 ] != ulCheckValue ) ||                                                \
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user