diff options
Diffstat (limited to 'src/math/numbertheory/point_gfp.h')
-rw-r--r-- | src/math/numbertheory/point_gfp.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/math/numbertheory/point_gfp.h b/src/math/numbertheory/point_gfp.h index f597990ff..f5e409ca7 100644 --- a/src/math/numbertheory/point_gfp.h +++ b/src/math/numbertheory/point_gfp.h @@ -245,8 +245,7 @@ inline PointGFp operator*(const BigInt& scalar, const PointGFp& point) inline PointGFp operator*(const PointGFp& point, const BigInt& scalar) { - PointGFp result(point); - return result *= scalar; + return scalar * point; } // encoding and decoding |