From: Kefu Chai Date: Mon, 22 Jul 2019 07:05:38 +0000 (+0800) Subject: rgw/rgw_crypt.cc: silence -Wsign-compare GCC warning X-Git-Tag: v15.1.0~2125^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=991585cccf27c5e35d9092807c3720f30a855da6;p=ceph-ci.git rgw/rgw_crypt.cc: silence -Wsign-compare GCC warning Signed-off-by: Kefu Chai --- diff --git a/src/rgw/rgw_crypt.cc b/src/rgw/rgw_crypt.cc index 250bc127db3..947f64818f4 100644 --- a/src/rgw/rgw_crypt.cc +++ b/src/rgw/rgw_crypt.cc @@ -91,7 +91,7 @@ bool evp_sym_transform(CephContext* const cct, // operate! int written = 0; - ceph_assert(size <= std::numeric_limits::max()); + ceph_assert(size <= static_cast(std::numeric_limits::max())); if (1 != EVP_CipherUpdate(pctx.get(), out, &written, in, size)) { ldout(cct, 5) << "EVP: EVP_CipherUpdate failed" << dendl; return false;