Merge pull request #29151 from tchaikov/wip-rgw-kill-gcc-warnings

rgw/rgw_crypt.cc: silence -Wsign-compare GCC warning

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
This commit is contained in:
Kefu Chai 2019-07-23 10:23:26 +08:00 committed by GitHub
commit 4e10548810
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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;