summaryrefslogtreecommitdiff
path: root/ecp.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-08-07 01:57:59 -0400
committerJeffrey Walton <noloader@gmail.com>2019-08-07 01:57:59 -0400
commitb5fe6ab3833bf506b1c0caf8400d7a4e2cc8b688 (patch)
treea668571fa7b30092f21823ffc1dc930baae89883 /ecp.cpp
parent7dc3b73e92f31ee19d0ca0b26e7bea583c9e15dd (diff)
downloadcryptopp-git-b5fe6ab3833bf506b1c0caf8400d7a4e2cc8b688.tar.gz
Clear parenthesis warning with GCC
Diffstat (limited to 'ecp.cpp')
-rw-r--r--ecp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ecp.cpp b/ecp.cpp
index f669478d..8564a08f 100644
--- a/ecp.cpp
+++ b/ecp.cpp
@@ -666,7 +666,7 @@ ECP::Point ECP::AdditionFunction::operator()(const Point& P) const
const FieldElement& a = m_ecp.m_a;
// More gyrations
- bool identity = P.identity | P.y==field.Identity();
+ bool identity = (P.identity | (P.y==field.Identity()));
FieldElement t = field.Square(P.x);
t = field.Add(field.Add(field.Double(t), t), a);
@@ -879,7 +879,7 @@ ECP::Point ECP::AdditionFunction::operator()(const Point& P, const Point& Q) con
bool identity = field.Equal(P.x, Q.x) && !field.Equal(P.y, Q.y);
// This code taken from Double(P)
- identity |= double_P * (P.identity | P.y==field.Identity());
+ identity |= (double_P * (P.identity | (P.y==field.Identity())));
if (double_P)
{