From: Adam C. Emerson Date: Fri, 5 Jul 2019 16:08:18 +0000 (-0400) Subject: rgw: Fix narrowing conversion error X-Git-Tag: v15.1.0~2280^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e48725dd6ca8d1aad40e1b0f40bd0850d9ce4f12;p=ceph.git rgw: Fix narrowing conversion error Signed-off-by: Adam C. Emerson --- diff --git a/src/rgw/rgw_crypt.cc b/src/rgw/rgw_crypt.cc index c1a08d90c3a3..250bc127db33 100644 --- a/src/rgw/rgw_crypt.cc +++ b/src/rgw/rgw_crypt.cc @@ -72,7 +72,7 @@ bool evp_sym_transform(CephContext* const cct, } // we want to support ciphers that don't use IV at all like AES-256-ECB - if constexpr (IvSizeV) { + if constexpr (static_cast(IvSizeV)) { ceph_assert(EVP_CIPHER_CTX_iv_length(pctx.get()) == IvSizeV); ceph_assert(EVP_CIPHER_CTX_block_size(pctx.get()) == IvSizeV); }