From 991585cccf27c5e35d9092807c3720f30a855da6 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 22 Jul 2019 15:05:38 +0800 Subject: [PATCH] rgw/rgw_crypt.cc: silence -Wsign-compare GCC warning Signed-off-by: Kefu Chai --- src/rgw/rgw_crypt.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5