mirror of
https://github.com/monero-project/monero.git
synced 2025-08-09 08:42:20 -04: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
1 changed files with 4 additions and 2 deletions
|
@ -70,7 +70,9 @@ class Curve
|
||||||
{
|
{
|
||||||
//constructor
|
//constructor
|
||||||
public:
|
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}
|
m_hash_init_point{hash_init_point}
|
||||||
{};
|
{};
|
||||||
|
|
||||||
|
@ -95,7 +97,7 @@ public:
|
||||||
|
|
||||||
//member variables
|
//member variables
|
||||||
public:
|
public:
|
||||||
const typename C::Point &m_hash_init_point;
|
const typename C::Point m_hash_init_point;
|
||||||
};
|
};
|
||||||
//----------------------------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------------------------
|
||||||
class Helios final : public Curve<HeliosT>
|
class Helios final : public Curve<HeliosT>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue