diff options
author | lloyd <[email protected]> | 2010-02-24 22:02:27 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-02-24 22:02:27 +0000 |
commit | fd46772a8d1f666f4b0833b9510cc2faf4c7960a (patch) | |
tree | fe707fb6fe239621049287da79f33fe025192b20 /src/math/gfpmath/point_gfp.cpp | |
parent | 694e221bab3dd325425318ca01c929907883ec56 (diff) |
De-mutable PointGFp
Diffstat (limited to 'src/math/gfpmath/point_gfp.cpp')
-rw-r--r-- | src/math/gfpmath/point_gfp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/gfpmath/point_gfp.cpp b/src/math/gfpmath/point_gfp.cpp index f3fd3e588..f4626cd4e 100644 --- a/src/math/gfpmath/point_gfp.cpp +++ b/src/math/gfpmath/point_gfp.cpp @@ -223,7 +223,7 @@ PointGFp& PointGFp::mult2_in_place() * Z has value one, i.e. x and y correspond to * their values in affine coordinates */ -PointGFp PointGFp::get_z_to_one() const +PointGFp PointGFp::get_z_to_one() { return PointGFp(*this).set_z_to_one(); } @@ -234,7 +234,7 @@ PointGFp PointGFp::get_z_to_one() const * their values in affine coordinates. * returns *this. */ -const PointGFp& PointGFp::set_z_to_one() const +const PointGFp& PointGFp::set_z_to_one() { if(!(mZ.get_value() == BigInt(1)) && !(mZ.get_value() == BigInt(0))) { |