From 89468c01d4a5653b4455b8a6d753d707898e1182 Mon Sep 17 00:00:00 2001 From: Siying Dong Date: Mon, 26 Jun 2017 17:14:11 -0700 Subject: [PATCH] Fix Windows build broken by 5c97a7c0664d4071768113814e9ba71fe87e18cf Summary: A typo conversion fails Windows build. Fix it. Closes https://github.com/facebook/rocksdb/pull/2500 Differential Revision: D5325962 Pulled By: siying fbshipit-source-id: 2cefdafc9afbc85f856f403af7c876b622400630 --- db/db_io_failure_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/db_io_failure_test.cc b/db/db_io_failure_test.cc index f0b250f16..9c42856ff 100644 --- a/db/db_io_failure_test.cc +++ b/db/db_io_failure_test.cc @@ -283,7 +283,8 @@ TEST_F(DBIOFailureTest, FlushSstRangeSyncError) { rocksdb::SyncPoint::GetInstance()->EnableProcessing(); Random rnd(301); - std::string rnd_str = RandomString(&rnd, options.bytes_per_sync / 2); + std::string rnd_str = + RandomString(&rnd, static_cast(options.bytes_per_sync / 2)); std::string rnd_str_512kb = RandomString(&rnd, 512 * 1024); ASSERT_OK(Put(1, "foo", "bar"));