diff options
author | Andy Polyakov <appro@openssl.org> | 2017-11-11 16:35:46 +0100 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2017-11-13 11:16:52 +0100 |
commit | 1bc5c3cc9dd5e553c448d82c256d4af5f37ef1c7 (patch) | |
tree | 57a6ebfb067fc0db99b82ba40a5d51af24de34f7 /apps/speed.c | |
parent | 45a58b161bca9966b2295e91c31869a45448baf1 (diff) |
Resolve warnings in VC-WIN32 build, which allows to add /WX.
It's argued that /WX allows to keep better focus on new code, which
motivates its comeback...
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4718)
Diffstat (limited to 'apps/speed.c')
-rw-r--r-- | apps/speed.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/speed.c b/apps/speed.c index 5259c16f12..5383678b98 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -2829,8 +2829,8 @@ static void multiblock_speed(const EVP_CIPHER *evp_cipher) RAND_bytes(out, 16); len += 16; - aad[11] = len >> 8; - aad[12] = len; + aad[11] = (unsigned char)(len >> 8); + aad[12] = (unsigned char)(len); pad = EVP_CIPHER_CTX_ctrl(&ctx, EVP_CTRL_AEAD_TLS1_AAD, EVP_AEAD_TLS1_AAD_LEN, aad); |