Skip to content

Commit

Permalink
blockchain_blackball: fix shift range for 32 bit archs
Browse files Browse the repository at this point in the history
Coverity 188406
  • Loading branch information
moneromooo-monero committed Sep 27, 2018
1 parent 8bf5a00 commit c57a65b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blockchain_utilities/blockchain_blackball.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ static uint64_t get_ring_subset_instances(MDB_txn *txn, uint64_t amount, const s
uint64_t extra = 0;
std::vector<uint64_t> subset;
subset.reserve(ring.size());
for (uint64_t mask = 1; mask < (1u << ring.size()) - 1; ++mask)
for (uint64_t mask = 1; mask < (((uint64_t)1) << ring.size()) - 1; ++mask)
{
subset.resize(0);
for (size_t i = 0; i < ring.size(); ++i)
Expand Down

0 comments on commit c57a65b

Please sign in to comment.