diff options
author | Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com> | 2018-06-20 10:29:47 +0200 |
---|---|---|
committer | Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com> | 2018-06-20 10:29:47 +0200 |
commit | 95e2ecae95dde7772b1f0e98d572d8a7ba158ebf (patch) | |
tree | 76c8fc598d6f0e8cd90c23bdd051925d521aa8fc /library/ecp.c | |
parent | 79d9b50421c2ebd2e1805a5ed7d7017550aa5ab2 (diff) |
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
Diffstat (limited to 'library/ecp.c')
-rw-r--r-- | library/ecp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/ecp.c b/library/ecp.c index 52d6d9c3..bbc1ff08 100644 --- a/library/ecp.c +++ b/library/ecp.c @@ -506,7 +506,7 @@ void mbedtls_ecp_group_init( mbedtls_ecp_group *grp ) 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 ); |