aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_cipher.c
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-07-24 19:58:37 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-07-24 20:02:14 +0900
commit1c58abdad0b9e4ed5e668960e4f4496d5929f501 (patch)
treed3c7dcd2bbca36694d8ca3c94095ef3ad8a9a4f2 /ext/openssl/ossl_cipher.c
parente1361a0aae241e0426b91d3d864c8628e1fa94f5 (diff)
downloadruby-openssl-1c58abdad0b9e4ed5e668960e4f4496d5929f501.tar.gz
cipher: avoid -Wshorten-64-to-32 warning in ossl_cipher_update_long()
Fixes c0548c94e499.
Diffstat (limited to 'ext/openssl/ossl_cipher.c')
-rw-r--r--ext/openssl/ossl_cipher.c2
1 files changed, 1 insertions, 1 deletions
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))