From 988c4eae402880027bae7aa60b79ed1a75e7b7ac Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Fri, 24 May 2024 19:24:38 -0400 Subject: [PATCH] Remove reference from m_hash_init_point Identified by kayabaNerve, patch suggested by j-berman. --- src/fcmp/tower_cycle.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/fcmp/tower_cycle.h b/src/fcmp/tower_cycle.h index dfd9eee4b..9fdea38f3 100644 --- a/src/fcmp/tower_cycle.h +++ b/src/fcmp/tower_cycle.h @@ -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