Fix db_write_test clang/windows build failure

Summary:
Fix db_write_test clang/windows build failure. Explicitly cast size_t (unsigned long) to uint32_t (unsigned int).
Closes https://github.com/facebook/rocksdb/pull/2407

Differential Revision: D5182995

Pulled By: yiwu-arbug

fbshipit-source-id: aba225a9fccb12d5bfbdc2cd6efc11040706a9d2
This commit is contained in:
Yi Wu 2017-06-05 12:06:23 -07:00 committed by Facebook Github Bot
parent c7662a44a4
commit dba9f3722b

View File

@ -47,7 +47,7 @@ TEST_P(DBWriteTest, ReturnSeuqneceNumberMultiThreaded) {
flags[i].clear();
}
auto writer = [&](size_t id) {
Random rnd(4422 + id);
Random rnd(4422 + static_cast<uint32_t>(id));
for (size_t k = 0; k < kNumKeys; k++) {
WriteBatch batch;
batch.Put("key" + ToString(id) + "-" + ToString(k),