From 46c4fa16abc1971eac9a8a9def0fc78ed8043a1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Wed, 12 Aug 2015 09:27:55 +0200 Subject: [PATCH] Fix missing casts on return closes #236 --- include/mbedtls/cipher.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mbedtls/cipher.h b/include/mbedtls/cipher.h index cccc5d885..a4e77315e 100644 --- a/include/mbedtls/cipher.h +++ b/include/mbedtls/cipher.h @@ -368,7 +368,7 @@ static inline int mbedtls_cipher_get_iv_size( const mbedtls_cipher_context_t *ct if( ctx->iv_size != 0 ) return (int) ctx->iv_size; - return ctx->cipher_info->iv_size; + return (int) ctx->cipher_info->iv_size; } /** @@ -416,7 +416,7 @@ static inline int mbedtls_cipher_get_key_bitlen( const mbedtls_cipher_context_t if( NULL == ctx || NULL == ctx->cipher_info ) return MBEDTLS_KEY_LENGTH_NONE; - return ctx->cipher_info->key_bitlen; + return (int) ctx->cipher_info->key_bitlen; } /**