Skip to content

Commit e78cd62

Browse files
authored
Merge pull request #159 from k-stachowiak/IOTCRYPT-474-prevent-dead-code-warning
Prevent dead code warning
2 parents ee6f9b2 + 653a4a2 commit e78cd62

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/ecp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2004,8 +2004,10 @@ static unsigned char ecp_pick_window_size( const mbedtls_ecp_group *grp,
20042004
* Make sure w is within bounds.
20052005
* (The last test is useful only for very small curves in the test suite.)
20062006
*/
2007+
#if( MBEDTLS_ECP_WINDOW_SIZE < 6 )
20072008
if( w > MBEDTLS_ECP_WINDOW_SIZE )
20082009
w = MBEDTLS_ECP_WINDOW_SIZE;
2010+
#endif
20092011
if( w >= grp->nbits )
20102012
w = 2;
20112013

0 commit comments

Comments
 (0)