Skip to content

Commit 24f034b

Browse files
committed
Merge pull request XRPLF#282 from Chilledheart/develop
Fix build issue under macosx
2 parents ebb5c65 + 49fe329 commit 24f034b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

db/db_test.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -6036,22 +6036,22 @@ TEST(DBTest, BloomFilterWrapper) {
60366036
}
60376037
// Add a large key to make the file contain wide range
60386038
ASSERT_OK(Put(1, Key(maxKey + 55555), Key(maxKey + 55555)));
6039-
ASSERT_EQ(0, policy->GetCounter());
6039+
ASSERT_EQ(0U, policy->GetCounter());
60406040
Flush(1);
60416041

60426042
// Check if they can be found
60436043
for (int i = 0; i < maxKey; i++) {
60446044
ASSERT_EQ(Key(i), Get(1, Key(i)));
60456045
}
60466046
ASSERT_EQ(TestGetTickerCount(options, BLOOM_FILTER_USEFUL), 0);
6047-
ASSERT_EQ(maxKey, policy->GetCounter());
6047+
ASSERT_EQ(1U * maxKey, policy->GetCounter());
60486048

60496049
// Check if filter is useful
60506050
for (int i = 0; i < maxKey; i++) {
60516051
ASSERT_EQ("NOT_FOUND", Get(1, Key(i+33333)));
60526052
}
60536053
ASSERT_GE(TestGetTickerCount(options, BLOOM_FILTER_USEFUL), maxKey*0.98);
6054-
ASSERT_EQ(2 * maxKey, policy->GetCounter());
6054+
ASSERT_EQ(2U * maxKey, policy->GetCounter());
60556055
}
60566056

60576057
TEST(DBTest, SnapshotFiles) {

0 commit comments

Comments
 (0)