mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 12:09:54 +00:00
Merge pull request #1566
176b70a0
account: fix build error involving std::max and different types (moneromooo-monero)
This commit is contained in:
commit
d98db4868d
1 changed files with 6 additions and 2 deletions
|
@ -82,7 +82,9 @@ DISABLE_VS_WARNINGS(4244 4345)
|
|||
|
||||
if (recover)
|
||||
{
|
||||
m_creation_timestamp = std::max(mktime(×tamp), (long)0);
|
||||
m_creation_timestamp = mktime(×tamp);
|
||||
if (m_creation_timestamp == (uint64_t)-1) // failure
|
||||
m_creation_timestamp = 0; // lowest value
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -105,7 +107,9 @@ DISABLE_VS_WARNINGS(4244 4345)
|
|||
timestamp.tm_min = 0;
|
||||
timestamp.tm_sec = 0;
|
||||
|
||||
m_creation_timestamp = std::max(mktime(×tamp), (long)0);
|
||||
m_creation_timestamp = mktime(×tamp);
|
||||
if (m_creation_timestamp == (uint64_t)-1) // failure
|
||||
m_creation_timestamp = 0; // lowest value
|
||||
}
|
||||
//-----------------------------------------------------------------
|
||||
void account_base::create_from_viewkey(const cryptonote::account_public_address& address, const crypto::secret_key& viewkey)
|
||||
|
|
Loading…
Reference in a new issue