mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-12 17:45:42 +00:00
Merge pull request #159 from k-stachowiak/IOTCRYPT-474-prevent-dead-code-warning
Prevent dead code warning
This commit is contained in:
commit
e78cd62acb
|
@ -2004,8 +2004,10 @@ static unsigned char ecp_pick_window_size( const mbedtls_ecp_group *grp,
|
||||||
* Make sure w is within bounds.
|
* Make sure w is within bounds.
|
||||||
* (The last test is useful only for very small curves in the test suite.)
|
* (The last test is useful only for very small curves in the test suite.)
|
||||||
*/
|
*/
|
||||||
|
#if( MBEDTLS_ECP_WINDOW_SIZE < 6 )
|
||||||
if( w > MBEDTLS_ECP_WINDOW_SIZE )
|
if( w > MBEDTLS_ECP_WINDOW_SIZE )
|
||||||
w = MBEDTLS_ECP_WINDOW_SIZE;
|
w = MBEDTLS_ECP_WINDOW_SIZE;
|
||||||
|
#endif
|
||||||
if( w >= grp->nbits )
|
if( w >= grp->nbits )
|
||||||
w = 2;
|
w = 2;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue