Clear parenthesis warning with GCC
parent
7dc3b73e92
commit
b5fe6ab383
4
ecp.cpp
4
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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue