blockchain: use uint64_t for block height, not size_t

for consistency
This commit is contained in:
moneromooo-monero 2018-11-05 14:43:35 +00:00
parent 7e2483e1d5
commit 3b14d9727b
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -853,7 +853,7 @@ difficulty_type Blockchain::get_difficulty_for_next_block()
} }
else 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) if (offset == 0)
++offset; ++offset;