mirror of
https://github.com/monero-project/monero.git
synced 2024-12-28 03:59:24 -05:00
blockchain: use uint64_t for block height, not size_t
for consistency
This commit is contained in:
parent
7e2483e1d5
commit
3b14d9727b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user