1
0
Fork 0
forked from lthn/blockchain

crypto: warnings fix

This commit is contained in:
sowle 2022-05-11 23:43:34 +02:00
parent 9032642ca7
commit 607d634078
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -205,12 +205,12 @@ namespace crypto
crypto::secret_key &as_secret_key()
{
return *(crypto::secret_key*)&m_s[0];
return *reinterpret_cast<crypto::secret_key*>(&m_s[0]);
}
const crypto::secret_key& as_secret_key() const
{
return *(const crypto::secret_key*)&m_s[0];
return *reinterpret_cast<const crypto::secret_key*>(&m_s[0]);
}
operator crypto::secret_key() const