]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_common: silence Wsign-compare warning
authorKefu Chai <kchai@redhat.com>
Wed, 10 Mar 2021 11:24:12 +0000 (19:24 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 10 Mar 2021 11:24:52 +0000 (19:24 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/rgw/rgw_common.h

index ba4968827f268c17c20a8277269f0309f97fd4fc..840f4271fb5df443d51679382f5d2dfade3242b9 100644 (file)
@@ -358,7 +358,7 @@ class RGWHTTPArgs {
   bool exist_obj_excl_sub_resource() const {
     const char* const obj_sub_resource[] = {"append", "torrent", "uploadId",
                                             "partNumber", "versionId"};
-    for (int i = 0; i != std::size(obj_sub_resource); i++) {
+    for (unsigned i = 0; i != std::size(obj_sub_resource); i++) {
       if (sub_resource_exists(obj_sub_resource[i])) return true;
     }
     return false;