]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix vector index warning 36313/head
authorChangcheng Liu <changcheng.liu@aliyun.com>
Mon, 27 Jul 2020 11:43:28 +0000 (19:43 +0800)
committerChangcheng Liu <changcheng.liu@aliyun.com>
Thu, 27 Aug 2020 05:38:19 +0000 (13:38 +0800)
commite112a17282713fca223fc6052beb27a5230e8f8f
treec0de8f4a8e1468c6fc1b11c0e63bb677389a4efe
parent031d363ca3e0e31f610507220c8c0c75bd0754b0
rgw: fix vector index warning

src/rgw/rgw_etag_verifier.cc: In member function ‘virtual int RGWPutObj_ETagVerifier_MPU::process(ceph::bufferlist&&, uint64_t)’:
src/rgw/rgw_etag_verifier.cc:58:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<long unsigned int>::size_type
   58 |   if (next_part_index == part_ofs.size()) {
      |       ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
src/rgw/rgw_etag_verifier.cc:76:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<long unsigned int>::size_type
   76 |     if (next_part_index == part_ofs.size())
      |         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~

Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
src/rgw/rgw_etag_verifier.h