diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-08-07 01:57:59 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-08-07 01:57:59 -0400 |
commit | b5fe6ab3833bf506b1c0caf8400d7a4e2cc8b688 (patch) | |
tree | a668571fa7b30092f21823ffc1dc930baae89883 /ecp.cpp | |
parent | 7dc3b73e92f31ee19d0ca0b26e7bea583c9e15dd (diff) | |
download | cryptopp-git-b5fe6ab3833bf506b1c0caf8400d7a4e2cc8b688.tar.gz |
Clear parenthesis warning with GCC
Diffstat (limited to 'ecp.cpp')
-rw-r--r-- | ecp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)
{
|