From: Danny Al-Gaaf Date: Wed, 15 Apr 2015 10:22:29 +0000 (+0200) Subject: TestPGLog.cc: fix -Wsign-compare X-Git-Tag: v9.0.1~128^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F4339%2Fhead;p=ceph.git TestPGLog.cc: fix -Wsign-compare Signed-off-by: Danny Al-Gaaf --- diff --git a/src/test/osd/TestPGLog.cc b/src/test/osd/TestPGLog.cc index c88bc989038e..8ec0ad8f9a75 100644 --- a/src/test/osd/TestPGLog.cc +++ b/src/test/osd/TestPGLog.cc @@ -1939,12 +1939,12 @@ TEST_F(PGLogTest, filter_log_1) { // Some should be removed log.filter_log(pgid, *osdmap, hit_set_namespace); - EXPECT_LE(log.log.size(), total); + EXPECT_LE(log.log.size(), (size_t)total); // If we filter a second time, there should be the same total total = log.log.size(); log.filter_log(pgid, *osdmap, hit_set_namespace); - EXPECT_EQ(log.log.size(), total); + EXPECT_EQ(log.log.size(), (size_t)total); // Increase pg_num as if there would be a split int new_pg_num = pg_num * 16; @@ -1961,7 +1961,7 @@ TEST_F(PGLogTest, filter_log_1) { // We should have fewer entries after a filter log.filter_log(pgid, *osdmap, hit_set_namespace); - EXPECT_LE(log.log.size(), total); + EXPECT_LE(log.log.size(), (size_t)total); // Make sure all internal entries are retained int count = 0;