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
main
Yueh-Hsuan Chiang 10 years ago
parent 67dae255a9
commit 1903aa5cc7
  1. 4
      db/db_test.cc

@ -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();

Loading…
Cancel
Save