Browse Source

type mismatch with something I do in prsona code

tristangurtler 3 years ago
parent
commit
513323222d
2 changed files with 2 additions and 2 deletions
  1. 1 1
      bgn2/inc/Curvepoint.hpp
  2. 1 1
      bgn2/src/Curvepoint.cpp

+ 1 - 1
bgn2/inc/Curvepoint.hpp

@@ -15,7 +15,7 @@ class Curvepoint
 {
     public:
         Curvepoint();
-        Curvepoint(curvepoint_fp_t input);
+        Curvepoint(const curvepoint_fp_t input);
 
         Curvepoint operator+(const Curvepoint& b) const;
         Curvepoint operator*(const Scalar& mult) const;

+ 1 - 1
bgn2/src/Curvepoint.cpp

@@ -5,7 +5,7 @@ Curvepoint::Curvepoint()
     curvepoint_fp_setneutral(point);
 }
 
-Curvepoint::Curvepoint(curvepoint_fp_t input)
+Curvepoint::Curvepoint(const curvepoint_fp_t input)
 {
     curvepoint_fp_set(point, input);
 }