mirror of
https://github.com/monero-project/monero.git
synced 2025-01-25 06:06:38 -05:00
Remove reference from m_hash_init_point
Identified by kayabaNerve, patch suggested by j-berman.
This commit is contained in:
parent
a1ee603132
commit
988c4eae40
@ -70,7 +70,9 @@ class Curve
|
||||
{
|
||||
//constructor
|
||||
public:
|
||||
Curve(const typename C::Point &hash_init_point):
|
||||
// This doesn't have a reference as doing so delays initialization and borks
|
||||
// it
|
||||
Curve(const typename C::Point hash_init_point):
|
||||
m_hash_init_point{hash_init_point}
|
||||
{};
|
||||
|
||||
@ -95,7 +97,7 @@ public:
|
||||
|
||||
//member variables
|
||||
public:
|
||||
const typename C::Point &m_hash_init_point;
|
||||
const typename C::Point m_hash_init_point;
|
||||
};
|
||||
//----------------------------------------------------------------------------------------------------------------------
|
||||
class Helios final : public Curve<HeliosT>
|
||||
|
Loading…
Reference in New Issue
Block a user