From 24c7dae130ff930042c6d94aab7ce98af63e04ed Mon Sep 17 00:00:00 2001 From: Zhipeng Jia Date: Mon, 21 Dec 2015 23:55:15 +0800 Subject: [PATCH] Fix clang warning regarding implicit conversion --- db/db_compaction_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/db_compaction_test.cc b/db/db_compaction_test.cc index 40dc2aa9a1..19cc94a76a 100644 --- a/db/db_compaction_test.cc +++ b/db/db_compaction_test.cc @@ -601,7 +601,8 @@ TEST_F(DBCompactionTest, ZeroSeqIdCompaction) { CompactionOptions compact_opt; compact_opt.compression = kNoCompression; compact_opt.output_file_size_limit = 4096; - const int key_len = compact_opt.output_file_size_limit / 5; + const size_t key_len = + static_cast(compact_opt.output_file_size_limit) / 5; options = CurrentOptions(options); DestroyAndReopen(options);