]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Fix narrowing conversion error 28905/head
authorAdam C. Emerson <aemerson@redhat.com>
Fri, 5 Jul 2019 16:08:18 +0000 (12:08 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Fri, 5 Jul 2019 16:08:18 +0000 (12:08 -0400)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/rgw/rgw_crypt.cc

index c1a08d90c3a3fc23649b5d4e87ff0345eb421109..250bc127db33f142fea999757deed341b23359a5 100644 (file)
@@ -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<bool>(IvSizeV)) {
     ceph_assert(EVP_CIPHER_CTX_iv_length(pctx.get()) == IvSizeV);
     ceph_assert(EVP_CIPHER_CTX_block_size(pctx.get()) == IvSizeV);
   }