From 1903aa5cc730b3766abbde5a3b0d5147ec5b3ada Mon Sep 17 00:00:00 2001 From: Yueh-Hsuan Chiang Date: Thu, 31 Jul 2014 14:48:00 -0700 Subject: [PATCH] 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' requested here ASSERT_EQ(int_num, 0); ^ Test Plan: make --- db/db_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/db_test.cc b/db/db_test.cc index b56308eec..4c230d85a 100644 --- a/db/db_test.cc +++ b/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();