From b5fe6ab3833bf506b1c0caf8400d7a4e2cc8b688 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 7 Aug 2019 01:57:59 -0400 Subject: Clear parenthesis warning with GCC --- ecp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ecp.cpp') 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) { -- cgit v1.2.1