Fixing narrowing conversion warning and updating style. (#3901)

This commit is contained in:
clemahieu 2022-08-22 14:17:58 +01:00 committed by GitHub
commit 5130d3c542
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -513,11 +513,11 @@ TEST (store, unchecked_load)
TEST (store, vote_load) TEST (store, vote_load)
{ {
nano::test::system system (1); nano::test::system system{ 1 };
auto & node (*system.nodes[0]); auto & node = *system.nodes[0];
for (auto i (0); i < 1000000; ++i) for (auto i = 0u; i < 1000000u; ++i)
{ {
auto vote (std::make_shared<nano::vote> (nano::dev::genesis_key.pub, nano::dev::genesis_key.prv, i, 0, std::vector<nano::block_hash>{ i })); auto vote = std::make_shared<nano::vote> (nano::dev::genesis_key.pub, nano::dev::genesis_key.prv, i, 0, std::vector<nano::block_hash>{ i });
node.vote_processor.vote (vote, std::make_shared<nano::transport::inproc::channel> (node, node)); node.vote_processor.vote (vote, std::make_shared<nano::transport::inproc::channel> (node, node));
} }
} }