diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-05 14:43:35 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-05 14:47:48 +0000 |
commit | 3b14d9727b6683dc9cd15352254e126e030250d8 (patch) | |
tree | f5ffeaa53d9c475507ed3fa69019175d0905dc3a /src | |
parent | Merge pull request #4702 (diff) | |
download | monero-3b14d9727b6683dc9cd15352254e126e030250d8.tar.xz |
blockchain: use uint64_t for block height, not size_t
for consistency
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 2 |
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; |