mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-02-21 13:53:43 +00:00
Clear parenthesis warning with GCC
This commit is contained in:
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…
x
Reference in New Issue
Block a user