Skip to content

Commit 67ce647

Browse files
committed
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.
1 parent f17c800 commit 67ce647

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/bignum.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ static unsigned ct_lt_mpi_uint( const mbedtls_mpi_uint x,
11801180

11811181
ret = ret >> ( biL - 1 );
11821182

1183-
return ret;
1183+
return (unsigned) ret;
11841184
}
11851185

11861186
/*

0 commit comments

Comments
 (0)