From 1c58abdad0b9e4ed5e668960e4f4496d5929f501 Mon Sep 17 00:00:00 2001 From: Kazuki Yamaguchi Date: Sun, 24 Jul 2016 19:58:37 +0900 Subject: cipher: avoid -Wshorten-64-to-32 warning in ossl_cipher_update_long() Fixes c0548c94e499. --- ext/openssl/ossl_cipher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/openssl/ossl_cipher.c') diff --git a/ext/openssl/ossl_cipher.c b/ext/openssl/ossl_cipher.c index 89744a18..83c43904 100644 --- a/ext/openssl/ossl_cipher.c +++ b/ext/openssl/ossl_cipher.c @@ -335,7 +335,7 @@ ossl_cipher_update_long(EVP_CIPHER_CTX *ctx, unsigned char *out, long *out_len_p long out_len = 0; do { - int in_part_len = in_len > limit ? limit : in_len; + int in_part_len = in_len > limit ? limit : (int)in_len; if (!EVP_CipherUpdate(ctx, out ? (out + out_len) : 0, &out_part_len, in, in_part_len)) -- cgit v1.2.3