From 20d7902df927afa50e5c641b6edf2a32d64c8ed7 Mon Sep 17 00:00:00 2001 From: Dmitri Smirnov Date: Mon, 11 Jan 2016 16:10:48 -0800 Subject: [PATCH] Fix compile error. Use constructor style initialization instead of a cast for simplicity. --- db/plain_table_db_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/plain_table_db_test.cc b/db/plain_table_db_test.cc index ff07def96..e3d9fc402 100644 --- a/db/plain_table_db_test.cc +++ b/db/plain_table_db_test.cc @@ -68,7 +68,7 @@ TEST_F(PlainTableKeyDecoderTest, ReadNonMmap) { ASSERT_EQ(0, out.compare(tmp.substr(pos, read_size))); } - ASSERT_LT(string_source->total_reads(), kLength / kReadSize / 2); + ASSERT_LT(uint32_t(string_source->total_reads()), kLength / kReadSize / 2); } std::vector>> reads = {