mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 00:37:43 +00:00
wallet2: fix build for windows (std::max again)
This commit is contained in:
parent
2329d2f4c8
commit
9a39b7dd7f
1 changed files with 1 additions and 1 deletions
|
@ -1694,7 +1694,7 @@ void wallet2::get_short_chain_history(std::list<crypto::hash>& ids, uint64_t gra
|
|||
{
|
||||
size_t i = 0;
|
||||
size_t current_multiplier = 1;
|
||||
size_t blockchain_size = std::max(m_blockchain.size() / granularity * granularity, m_blockchain.offset());
|
||||
size_t blockchain_size = std::max((size_t)(m_blockchain.size() / granularity * granularity), m_blockchain.offset());
|
||||
size_t sz = blockchain_size - m_blockchain.offset();
|
||||
if(!sz)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue