ct_lt_mpi_uint: cast the return value explicitely

The return value is always either one or zero and therefore there is no
risk of losing precision. Some compilers can't deduce this and complain.
This commit is contained in:
Janos Follath 2019-10-29 15:08:46 +00:00 committed by Simon Butcher
parent 44e40c0792
commit 3d2b769d1c

View file

@ -1103,7 +1103,7 @@ static unsigned ct_lt_mpi_uint( const mbedtls_mpi_uint x,
ret = ret >> ( biL - 1 );
return ret;
return (unsigned) ret;
}
/*