Skip to content

Commit

Permalink
Merge pull request #4067
Browse files Browse the repository at this point in the history
9a39b7d wallet2: fix build for windows (std::max again) (moneromooo-monero)
  • Loading branch information
luigi1111 committed Jun 28, 2018
2 parents 65c09be + 9a39b7d commit a9b83f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/wallet2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit a9b83f5

Please sign in to comment.