From: Loic Dachary Date: Tue, 28 Oct 2014 22:38:48 +0000 (+0100) Subject: tests: fix signed/unsigned warning X-Git-Tag: v0.89~84^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=66b4cd9d2c90dc9c0a14eaf2f72e693f27962991;p=ceph.git tests: fix signed/unsigned warning Signed-off-by: Loic Dachary --- diff --git a/src/test/common/test_shared_cache.cc b/src/test/common/test_shared_cache.cc index 30453d53bc99..5947051edaa6 100644 --- a/src/test/common/test_shared_cache.cc +++ b/src/test/common/test_shared_cache.cc @@ -256,7 +256,7 @@ TEST(SharedCache_all, lru) { ASSERT_FALSE(cache.lookup(SIZE-1)); ASSERT_FALSE(cache.lookup(SIZE)); ASSERT_TRUE(cache.lookup(SIZE+1)); - ASSERT_EQ(SIZE+1, *cache.lookup(SIZE+1)); + ASSERT_EQ((int)SIZE+1, *cache.lookup(SIZE+1)); cache.purge(0); ASSERT_FALSE(cache.lookup(0));