mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Fix compiler warning: comparing signed to unsigned
Since the type of cid_len is unsigned but shorter than int, it gets "promoted" to int (which is also the type of the result), unless we make the other operand an unsigned int which then forces the expression to unsigned int as well.
This commit is contained in:
		
							parent
							
								
									9df5a82079
								
							
						
					
					
						commit
						5ea13b854a
					
				@ -11674,7 +11674,7 @@ static int ssl_context_load( mbedtls_ssl_context *ssl,
 | 
			
		||||
 | 
			
		||||
    ssl->transform->in_cid_len = *p++;
 | 
			
		||||
 | 
			
		||||
    if( (size_t)( end - p ) < ssl->transform->in_cid_len + 1 )
 | 
			
		||||
    if( (size_t)( end - p ) < ssl->transform->in_cid_len + 1u )
 | 
			
		||||
        return( MBEDTLS_ERR_SSL_BAD_INPUT_DATA );
 | 
			
		||||
 | 
			
		||||
    memcpy( ssl->transform->in_cid, p, ssl->transform->in_cid_len );
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user