Fixed a warning / error in signed and unsigned comparison

Summary:
Fixed the following compilation error detected in mac:
db/db_test.cc:2524:3: note: in instantiation of function template
  specialization 'rocksdb::test::Tester::IsEq<unsigned long long, int>' requested here
    ASSERT_EQ(int_num, 0);
      ^

Test Plan:
make
This commit is contained in:
Yueh-Hsuan Chiang 2014-07-31 14:48:00 -07:00
parent 67dae255a9
commit 1903aa5cc7

View File

@ -2521,9 +2521,9 @@ TEST(DBTest, GetProperty) {
dbfull()->GetIntProperty("rocksdb.mem-table-flush-pending", &int_num));
ASSERT_EQ(int_num, 1U);
ASSERT_TRUE(dbfull()->GetIntProperty("rocksdb.compaction-pending", &int_num));
ASSERT_EQ(int_num, 0);
ASSERT_EQ(int_num, 0U);
ASSERT_TRUE(dbfull()->GetIntProperty("rocksdb.estimate-num-keys", &int_num));
ASSERT_EQ(int_num, 4);
ASSERT_EQ(int_num, 4U);
sleeping_task_high.WakeUp();
sleeping_task_high.WaitUntilDone();