From 1ab09d13271e5eabea71309999840da85ebc5979 Mon Sep 17 00:00:00 2001 From: Li Wang Date: Fri, 30 Nov 2018 10:05:32 +0000 Subject: [PATCH] crush/CrushWrapper: silence compiler warning silence compiler warning for comparison between signed and unsigned integer expressions Signed-off-by: Li Wang --- src/crush/CrushWrapper.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crush/CrushWrapper.cc b/src/crush/CrushWrapper.cc index 744d5c9c38b3..0fda4ee89d40 100644 --- a/src/crush/CrushWrapper.cc +++ b/src/crush/CrushWrapper.cc @@ -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, -- 2.47.3