From: Matthew Fernandez Date: Sun, 9 Oct 2022 20:21:32 +0000 (-0700) Subject: common: remove some unnecessary parens X-Git-Tag: 6.0.2~3^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8747a1ad5da06879fb3c0abcde4324be3ca681cf;p=graphviz common: remove some unnecessary parens --- diff --git a/lib/common/ellipse.c b/lib/common/ellipse.c index 393ed9ff5..9472fde85 100644 --- a/lib/common/ellipse.c +++ b/lib/common/ellipse.c @@ -161,10 +161,10 @@ static void computeBounds(ellipse_t * ep) } } - etaXMin -= (TWOPI * floor((etaXMin - ep->eta1) / TWOPI)); - etaYMin -= (TWOPI * floor((etaYMin - ep->eta1) / TWOPI)); - etaXMax -= (TWOPI * floor((etaXMax - ep->eta1) / TWOPI)); - etaYMax -= (TWOPI * floor((etaYMax - ep->eta1) / TWOPI)); + etaXMin -= TWOPI * floor((etaXMin - ep->eta1) / TWOPI); + etaYMin -= TWOPI * floor((etaYMin - ep->eta1) / TWOPI); + etaXMax -= TWOPI * floor((etaXMax - ep->eta1) / TWOPI); + etaYMax -= TWOPI * floor((etaYMax - ep->eta1) / TWOPI); ep->xLeft = (etaXMin <= ep->eta2) ? (ep->cx + ep->a * cos(etaXMin) * ep->cosTheta - @@ -205,7 +205,7 @@ initEllipse(ellipse_t * ep, double cx, double cy, double a, double b, // the preceding correction fails if we have exactly eta2 - eta1 = 2*PI // it reduces the interval to zero length - if ((lambda2 - lambda1 > M_PI) && (ep->eta2 - ep->eta1 < M_PI)) { + if (lambda2 - lambda1 > M_PI && ep->eta2 - ep->eta1 < M_PI) { ep->eta2 += TWOPI; } @@ -366,10 +366,10 @@ estimateError(ellipse_t * ep, int degree, double etaA, double etaB) double (*coeffs)[4][4]; double *safety; if (degree == 2) { - coeffs = (x < 0.25) ? coeffs2Low : coeffs2High; + coeffs = x < 0.25 ? coeffs2Low : coeffs2High; safety = safety2; } else { - coeffs = (x < 0.25) ? coeffs3Low : coeffs3High; + coeffs = x < 0.25 ? coeffs3Low : coeffs3High; safety = safety3; }