diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-09-27 10:54:35 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-09-27 10:54:35 +0000 |
commit | c57a65b246021d37653e944caa30be628e6878f1 (patch) | |
tree | ad28f04883ce78f74eae8030a0fd02af8230a525 | |
parent | Merge pull request #4423 (diff) | |
download | monero-c57a65b246021d37653e944caa30be628e6878f1.tar.xz |
blockchain_blackball: fix shift range for 32 bit archs
Coverity 188406
-rw-r--r-- | src/blockchain_utilities/blockchain_blackball.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blockchain_utilities/blockchain_blackball.cpp b/src/blockchain_utilities/blockchain_blackball.cpp index 1c6e54d10..81c9bf705 100644 --- a/src/blockchain_utilities/blockchain_blackball.cpp +++ b/src/blockchain_utilities/blockchain_blackball.cpp @@ -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) |