blockchain: use uint64_t for block height, not size_t

for consistency
pull/4806/head
moneromooo-monero 6 years ago
parent 7e2483e1d5
commit 3b14d9727b
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -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…
Cancel
Save