From 0eb04b0bb64d16b099b12e32d7dc58ce89090ec8 Mon Sep 17 00:00:00 2001 From: Emden Gansner Date: Thu, 13 Sep 2012 11:03:36 -0400 Subject: [PATCH] Fix declaration appearing after statement for VS. --- 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 9e184e27d..301af0211 100644 --- a/lib/common/ellipse.c +++ b/lib/common/ellipse.c @@ -334,7 +334,7 @@ static double safety3[] = { static double estimateError(ellipse_t * ep, int degree, double etaA, double etaB) { - double eta = 0.5 * (etaA + etaB); + double c0, c1, eta = 0.5 * (etaA + etaB); if (degree < 2) { @@ -387,12 +387,12 @@ estimateError(ellipse_t * ep, int degree, double etaA, double etaB) safety = safety3; } - double c0 = RationalFunction(x, coeffs[0][0]) + c0 = RationalFunction(x, coeffs[0][0]) + cos2 * RationalFunction(x, coeffs[0][1]) + cos4 * RationalFunction(x, coeffs[0][2]) + cos6 * RationalFunction(x, coeffs[0][3]); - double c1 = RationalFunction(x, coeffs[1][0]) + c1 = RationalFunction(x, coeffs[1][0]) + cos2 * RationalFunction(x, coeffs[1][1]) + cos4 * RationalFunction(x, coeffs[1][2]) + cos6 * RationalFunction(x, coeffs[1][3]); -- 2.40.0