From ebbdef29fa1d4e7f466ab3aa7197e851320fd6b4 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Fri, 26 Apr 2013 12:37:03 -0700 Subject: [PATCH] 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 --- src/mon/Monitor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3