From: Greg Farnum Date: Fri, 26 Apr 2013 19:37:03 +0000 (-0700) Subject: monitor: squash signed/unsigned comparison warning X-Git-Tag: v0.61~86 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ebbdef29fa1d4e7f466ab3aa7197e851320fd6b4;p=ceph.git monitor: squash signed/unsigned comparison warning This is a safe range to do comparisons against, and we compare against the signed rank inside the loop. Signed-off-by: Greg Farnum --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 787a804db0ca..0b4a44f1649f 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -1107,7 +1107,7 @@ void Monitor::sync_timeout(entity_inst_t &entity) } // well that sucks. Let's see if we can find a monitor to connect to - for (int i = 0; i < monmap->size(); ++i) { + for (int i = 0; i < (int)monmap->size(); ++i) { entity_inst_t i_inst = monmap->get_inst(i); if (i != rank && i_inst != entity) { sync_provider->entity = i_inst;