commit | 95e2ecae95dde7772b1f0e98d572d8a7ba158ebf | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com> | Wed Jun 20 10:29:47 2018 +0200 |
committer | Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com> | Wed Jun 20 10:29:47 2018 +0200 |
tree | 76c8fc598d6f0e8cd90c23bdd051925d521aa8fc | |
parent | 79d9b50421c2ebd2e1805a5ed7d7017550aa5ab2 [diff] [blame] |
Fix IAR warning The IAR compiler doesn't like it when we assign an int to an enum variable. "C:\builds\ws\mbedtls-restricted-pr\library\ecp.c",509 Error[Pe188]: enumerated type mixed with another type
diff --git a/library/ecp.c b/library/ecp.c index 52d6d9c..bbc1ff0 100644 --- a/library/ecp.c +++ b/library/ecp.c
@@ -506,7 +506,7 @@ if( grp == NULL ) return; - grp->id = 0; + grp->id = MBEDTLS_ECP_DP_NONE; mbedtls_mpi_init( &grp->P ); mbedtls_mpi_init( &grp->A ); mbedtls_mpi_init( &grp->B );