aboutsummaryrefslogtreecommitdiffstats
path: root/src/math/gfpmath/point_gfp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/gfpmath/point_gfp.cpp')
-rw-r--r--src/math/gfpmath/point_gfp.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/math/gfpmath/point_gfp.cpp b/src/math/gfpmath/point_gfp.cpp
index 034289190..e5236787e 100644
--- a/src/math/gfpmath/point_gfp.cpp
+++ b/src/math/gfpmath/point_gfp.cpp
@@ -345,12 +345,10 @@ void PointGFp::swap(PointGFp& other)
bool PointGFp::operator==(const PointGFp& other) const
{
- if(get_curve() != other.get_curve())
- return false;
-
return (coord_x == other.coord_x &&
coord_y == other.coord_y &&
- coord_z == other.coord_z);
+ coord_z == other.coord_z &&
+ get_curve() == other.get_curve());
}
// arithmetic operators