From 9cbcea7e68f0e805109d7d253c31f02ba37b3b2b Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Fri, 2 Mar 2018 22:16:29 +0100 Subject: ec/curve448/f_generic.c: fix VC-WIN32 debug build failure. Debugging asserts had implicit casts that triggered the warnings. However, instead of making the casts explicit it's more appropriate to perform checks that ensure that implicit casts were safe. ec/curve448/scalar.c: size_t-fy scalar_decode_short. Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/5494) --- crypto/ec/curve448/scalar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crypto/ec/curve448/scalar.c') diff --git a/crypto/ec/curve448/scalar.c b/crypto/ec/curve448/scalar.c index 0f14bc4b98..b5702c0255 100644 --- a/crypto/ec/curve448/scalar.c +++ b/crypto/ec/curve448/scalar.c @@ -135,9 +135,9 @@ void curve448_scalar_add(curve448_scalar_t out, const curve448_scalar_t a, static ossl_inline void scalar_decode_short(curve448_scalar_t s, const unsigned char *ser, - unsigned int nbytes) + size_t nbytes) { - unsigned int i, j, k = 0; + size_t i, j, k = 0; for (i = 0; i < C448_SCALAR_LIMBS; i++) { c448_word_t out = 0; -- cgit v1.2.3