commit | e78cd62acb7ea0397f061ebc754b89ed6222b13c | [log] [tgz] |
---|---|---|
author | Jaeden Amero <jaeden.amero@arm.com> | Fri Jul 05 14:43:11 2019 +0100 |
committer | GitHub <noreply@github.com> | Fri Jul 05 14:43:11 2019 +0100 |
tree | ee97e4d2856cbb2d6063b9c8c62a704c4f72c328 | |
parent | ee6f9b2a9fc3b4d9b7d3189ec1e4f81a593e658b [diff] | |
parent | 653a4a2fba9739c7a9e048f2a5a4bbfeb1f4e4c0 [diff] |
Merge pull request #159 from k-stachowiak/IOTCRYPT-474-prevent-dead-code-warning Prevent dead code warning
diff --git a/library/ecp.c b/library/ecp.c index 03f5fef..ccc0788 100644 --- a/library/ecp.c +++ b/library/ecp.c
@@ -2004,8 +2004,10 @@ * Make sure w is within bounds. * (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 ) w = MBEDTLS_ECP_WINDOW_SIZE; +#endif if( w >= grp->nbits ) w = 2;