Skip to content
Permalink
Browse files

wallet2: fix build for windows (std::max again)

  • Loading branch information...
moneromooo-monero committed Jun 27, 2018
1 parent 2329d2f commit 9a39b7dd7ff032620278f5636b7fd84c477d7695
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/wallet/wallet2.cpp
@@ -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)
{

0 comments on commit 9a39b7d

Please sign in to comment.
You can’t perform that action at this time.