aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-05 14:43:35 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-05 14:47:48 +0000
commit3b14d9727b6683dc9cd15352254e126e030250d8 (patch)
treef5ffeaa53d9c475507ed3fa69019175d0905dc3a /src/cryptonote_core
parentMerge pull request #4702 (diff)
downloadmonero-3b14d9727b6683dc9cd15352254e126e030250d8.tar.xz
blockchain: use uint64_t for block height, not size_t
for consistency
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r--src/cryptonote_core/blockchain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index 77b6d0b69..e69ea6b08 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -853,7 +853,7 @@ difficulty_type Blockchain::get_difficulty_for_next_block()
}
else
{
- size_t offset = height - std::min < size_t > (height, static_cast<size_t>(DIFFICULTY_BLOCKS_COUNT));
+ uint64_t offset = height - std::min <uint64_t> (height, static_cast<uint64_t>(DIFFICULTY_BLOCKS_COUNT));
if (offset == 0)
++offset;