From 49fe329e5e9b20118fb20cd5c6bb2523819c697c Mon Sep 17 00:00:00 2001 From: Chilledheart Date: Sat, 13 Sep 2014 05:05:07 +0800 Subject: [PATCH] Fix build issue under macosx --- db/db_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/db_test.cc b/db/db_test.cc index 6f56f3688..d14dcab71 100644 --- a/db/db_test.cc +++ b/db/db_test.cc @@ -6036,7 +6036,7 @@ TEST(DBTest, BloomFilterWrapper) { } // Add a large key to make the file contain wide range ASSERT_OK(Put(1, Key(maxKey + 55555), Key(maxKey + 55555))); - ASSERT_EQ(0, policy->GetCounter()); + ASSERT_EQ(0U, policy->GetCounter()); Flush(1); // Check if they can be found @@ -6044,14 +6044,14 @@ TEST(DBTest, BloomFilterWrapper) { ASSERT_EQ(Key(i), Get(1, Key(i))); } ASSERT_EQ(TestGetTickerCount(options, BLOOM_FILTER_USEFUL), 0); - ASSERT_EQ(maxKey, policy->GetCounter()); + ASSERT_EQ(1U * maxKey, policy->GetCounter()); // Check if filter is useful for (int i = 0; i < maxKey; i++) { ASSERT_EQ("NOT_FOUND", Get(1, Key(i+33333))); } ASSERT_GE(TestGetTickerCount(options, BLOOM_FILTER_USEFUL), maxKey*0.98); - ASSERT_EQ(2 * maxKey, policy->GetCounter()); + ASSERT_EQ(2U * maxKey, policy->GetCounter()); } TEST(DBTest, SnapshotFiles) {