From: Prashant D Date: Mon, 28 Oct 2019 06:03:21 +0000 (-0400) Subject: crush/CrushWrapper.cc: Fix sign compare compiler warning X-Git-Tag: v15.1.0~1066^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b005abe65a3db13c8f5070c999de7865c650a0aa;p=ceph-ci.git crush/CrushWrapper.cc: Fix sign compare compiler warning introduced by 712a39e5c9d Signed-off-by: Prashant D --- diff --git a/src/crush/CrushWrapper.cc b/src/crush/CrushWrapper.cc index d4601cddbd1..9f68491c657 100644 --- a/src/crush/CrushWrapper.cc +++ b/src/crush/CrushWrapper.cc @@ -932,7 +932,7 @@ int CrushWrapper::verify_upmap(CephContext *cct, return -ENOENT; } int root_bucket = 0; - int cursor = 0; + size_t cursor = 0; for (unsigned step = 0; step < rule->len; ++step) { auto curstep = &rule->steps[step]; ldout(cct, 10) << __func__ << " step " << step << dendl;