]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw/rgw_crypt.cc: silence -Wsign-compare GCC warning
authorKefu Chai <kchai@redhat.com>
Mon, 22 Jul 2019 07:05:38 +0000 (15:05 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 22 Jul 2019 07:15:09 +0000 (15:15 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/rgw/rgw_crypt.cc

index 250bc127db33f142fea999757deed341b23359a5..947f64818f4df203dbbdb250e115d49d36b0c7fa 100644 (file)
@@ -91,7 +91,7 @@ bool evp_sym_transform(CephContext* const cct,
 
   // operate!
   int written = 0;
-  ceph_assert(size <= std::numeric_limits<int>::max());
+  ceph_assert(size <= static_cast<size_t>(std::numeric_limits<int>::max()));
   if (1 != EVP_CipherUpdate(pctx.get(), out, &written, in, size)) {
     ldout(cct, 5) << "EVP: EVP_CipherUpdate failed" << dendl;
     return false;