diff options
Diffstat (limited to 'src/math/gfpmath')
-rw-r--r-- | src/math/gfpmath/point_gfp.cpp | 6 |
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 |