aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/unit_ecc.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-01-02 10:41:01 -0500
committerJack Lloyd <[email protected]>2018-01-02 10:41:01 -0500
commit0b957292b1c854a12356503d5b5c13e540101843 (patch)
treed73acdd3e3ded2b2fa6e18cac0b31b2ff1df242f /src/tests/unit_ecc.cpp
parent1cf931e3e5871361d286ded8463fd9cc55ceb4a6 (diff)
Avoid a warning in Sonar
Diffstat (limited to 'src/tests/unit_ecc.cpp')
-rw-r--r--src/tests/unit_ecc.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/unit_ecc.cpp b/src/tests/unit_ecc.cpp
index 852420244..b9355e6f0 100644
--- a/src/tests/unit_ecc.cpp
+++ b/src/tests/unit_ecc.cpp
@@ -379,7 +379,9 @@ Test::Result test_zeropoint()
Botan::BigInt("1373093393927139016463695321221277758035357890939"));
result.confirm("point is on the curve", p1.on_the_curve());
- p1 -= p1;
+
+ Botan::PointGFp p2 = p1;
+ p1 -= p2;
result.confirm("p - q with q = p results in zero", p1.is_zero());
return result;