]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crush/CrushWrapper: silence compiler warning 25336/head
authorLi Wang <laurence.liwang@gmail.com>
Fri, 30 Nov 2018 10:05:32 +0000 (10:05 +0000)
committerLi Wang <laurence.liwang@gmail.com>
Fri, 30 Nov 2018 10:05:32 +0000 (10:05 +0000)
silence compiler warning for comparison
between signed and unsigned integer expressions

Signed-off-by: Li Wang <laurence.liwang@gmail.com>
src/crush/CrushWrapper.cc

index 744d5c9c38b3a48632b712754a04c8d4ff2187b5..0fda4ee89d40a194e3bbb1b41cf413497706894e 100644 (file)
@@ -2044,7 +2044,7 @@ int CrushWrapper::get_new_bucket_id()
       crush->buckets,
       sizeof(crush->buckets[0]) * crush->max_buckets);
     for (auto& i : choose_args) {
-      assert(i.second.size == crush->max_buckets - 1);
+      assert(i.second.size == (__u32)crush->max_buckets - 1);
       ++i.second.size;
       i.second.args = (struct crush_choose_arg*)realloc(
        i.second.args,