mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-03 18:22:45 -05:00 
			
		
		
		
	Add cast to xQueueGenericCreate
This commit is contained in:
		
							parent
							
								
									c0bfbb9692
								
							
						
					
					
						commit
						d31d71e698
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								queue.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								queue.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -513,7 +513,7 @@ BaseType_t xQueueGenericReset( QueueHandle_t xQueue,
 | 
			
		|||
            /* Check for multiplication overflow. */
 | 
			
		||||
            ( ( SIZE_MAX / uxQueueLength ) >= uxItemSize ) &&
 | 
			
		||||
            /* Check for addition overflow. */
 | 
			
		||||
            ( ( UBaseType_t ) ( SIZE_MAX - sizeof( Queue_t ) ) >= ( uxQueueLength * uxItemSize ) ) )
 | 
			
		||||
            ( ( UBaseType_t ) ( SIZE_MAX - sizeof( Queue_t ) ) >= ( UBaseType_t ) ( uxQueueLength * uxItemSize ) ) )
 | 
			
		||||
        {
 | 
			
		||||
            /* Allocate enough space to hold the maximum number of items that
 | 
			
		||||
             * can be in the queue at any time.  It is valid for uxItemSize to be
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue