mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
blockchain: use uint64_t for block height, not size_t
for consistency
This commit is contained in:
parent
7e2483e1d5
commit
3b14d9727b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue