mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-28 19:21:08 +00:00
Readability improvement
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
c217f48251
commit
99a82dce74
@ -354,7 +354,7 @@ int mbedtls_test_read_mpi_core( mbedtls_mpi_uint **pX, size_t *plimbs,
|
||||
if( *pX != NULL )
|
||||
return( MBEDTLS_ERR_MPI_BAD_INPUT_DATA );
|
||||
|
||||
*plimbs = ( input->len + sizeof( **pX ) - 1 ) / sizeof( **pX );
|
||||
*plimbs = CHARS_TO_LIMBS( input->len );
|
||||
if( *plimbs == 0 )
|
||||
return( 0 );
|
||||
*pX = mbedtls_calloc( *plimbs, sizeof( **pX ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user