From 7f84905552766d115a1a9a044c8c270df61fe6ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 10 Feb 2015 17:12:44 +0100 Subject: [PATCH] Fix two warnings from armcc v5 assignment in condition --- library/camellia.c | 2 +- library/pkparse.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/camellia.c b/library/camellia.c index 826d8834f..72d902b8e 100644 --- a/library/camellia.c +++ b/library/camellia.c @@ -456,7 +456,7 @@ int camellia_setkey_dec( camellia_context *ctx, const unsigned char *key, camellia_init( &cty ); /* Also checks keysize */ - if( ( ret = camellia_setkey_enc( &cty, key, keysize ) ) ) + if( ( ret = camellia_setkey_enc( &cty, key, keysize ) ) != 0 ) goto exit; ctx->nr = cty.nr; diff --git a/library/pkparse.c b/library/pkparse.c index 9a55d6df3..4ca359a48 100644 --- a/library/pkparse.c +++ b/library/pkparse.c @@ -345,7 +345,7 @@ static int pk_group_from_specified( const asn1_buf *params, ecp_group *grp ) /* * order INTEGER */ - if( ( ret = asn1_get_mpi( &p, end, &grp->N ) ) ) + if( ( ret = asn1_get_mpi( &p, end, &grp->N ) ) != 0 ) return( POLARSSL_ERR_PK_KEY_INVALID_FORMAT + ret ); grp->nbits = mpi_msb( &grp->N );