From 66b4cd9d2c90dc9c0a14eaf2f72e693f27962991 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Tue, 28 Oct 2014 23:38:48 +0100 Subject: [PATCH] tests: fix signed/unsigned warning Signed-off-by: Loic Dachary --- src/test/common/test_shared_cache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/common/test_shared_cache.cc b/src/test/common/test_shared_cache.cc index 30453d53bc997..5947051edaa6b 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)); -- 2.39.5