From 0138b8eba8778b1a0ff28084f69def99a53d5583 Mon Sep 17 00:00:00 2001 From: Yueh-Hsuan Chiang Date: Tue, 12 Aug 2014 17:35:09 -0700 Subject: [PATCH] Fixed compile errors (signed / unsigned comparison) in cuckoo_table_db_test on Mac Summary: Fixed compile errors (signed / unsigned comparison) in cuckoo_table_db_test on Mac Test Plan: make cuckoo_table_db_test --- db/cuckoo_table_db_test.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/db/cuckoo_table_db_test.cc b/db/cuckoo_table_db_test.cc index 588b1f48a..aa479d2ff 100644 --- a/db/cuckoo_table_db_test.cc +++ b/db/cuckoo_table_db_test.cc @@ -124,7 +124,7 @@ TEST(CuckooTableDBTest, Flush) { TablePropertiesCollection ptc; reinterpret_cast(dbfull())->GetPropertiesOfAllTables(&ptc); ASSERT_EQ(1U, ptc.size()); - ASSERT_EQ(3, ptc.begin()->second->num_entries); + ASSERT_EQ(3U, ptc.begin()->second->num_entries); ASSERT_EQ("1", FilesPerLevel()); ASSERT_EQ("v1", Get("key1")); @@ -143,8 +143,8 @@ TEST(CuckooTableDBTest, Flush) { reinterpret_cast(dbfull())->GetPropertiesOfAllTables(&ptc); ASSERT_EQ(2U, ptc.size()); auto row = ptc.begin(); - ASSERT_EQ(3, row->second->num_entries); - ASSERT_EQ(3, (++row)->second->num_entries); + ASSERT_EQ(3U, row->second->num_entries); + ASSERT_EQ(3U, (++row)->second->num_entries); ASSERT_EQ("2", FilesPerLevel()); ASSERT_EQ("v1", Get("key1")); ASSERT_EQ("v2", Get("key2")); @@ -160,9 +160,9 @@ TEST(CuckooTableDBTest, Flush) { reinterpret_cast(dbfull())->GetPropertiesOfAllTables(&ptc); ASSERT_EQ(3U, ptc.size()); row = ptc.begin(); - ASSERT_EQ(3, row->second->num_entries); - ASSERT_EQ(3, (++row)->second->num_entries); - ASSERT_EQ(3, (++row)->second->num_entries); + ASSERT_EQ(3U, row->second->num_entries); + ASSERT_EQ(3U, (++row)->second->num_entries); + ASSERT_EQ(3U, (++row)->second->num_entries); ASSERT_EQ("3", FilesPerLevel()); ASSERT_EQ("v1", Get("key1")); ASSERT_EQ("v2", Get("key2")); @@ -183,7 +183,7 @@ TEST(CuckooTableDBTest, FlushWithDuplicateKeys) { TablePropertiesCollection ptc; reinterpret_cast(dbfull())->GetPropertiesOfAllTables(&ptc); ASSERT_EQ(1U, ptc.size()); - ASSERT_EQ(2, ptc.begin()->second->num_entries); + ASSERT_EQ(2U, ptc.begin()->second->num_entries); ASSERT_EQ("1", FilesPerLevel()); ASSERT_EQ("v3", Get("key1")); ASSERT_EQ("v2", Get("key2"));