From 811397e46990680d683bd4bc00de6d1ba9a9cf7d Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 29 Aug 2021 12:31:56 -0700 Subject: [PATCH] genEllipticPath: remove shadowing of 'dEta' variable --- lib/common/ellipse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/common/ellipse.c b/lib/common/ellipse.c index 58a2e12ff..66c4d8912 100644 --- a/lib/common/ellipse.c +++ b/lib/common/ellipse.c @@ -469,13 +469,13 @@ static Ppolyline_t *genEllipticPath(ellipse_t * ep) { bool found = false; int i, n = 1; while (!found && n < 1024) { - double dEta = (ep->eta2 - ep->eta1) / n; - if (dEta <= 0.5 * M_PI) { + double diffEta = (ep->eta2 - ep->eta1) / n; + if (diffEta <= 0.5 * M_PI) { double etaB = ep->eta1; found = true; for (i = 0; found && i < n; ++i) { double etaA = etaB; - etaB += dEta; + etaB += diffEta; found = estimateError(ep, DEGREE, etaA, etaB) <= THRESHOLD; } } -- 2.40.0