From 60d3df673ca224107eb63e459073fc11ab5f4f16 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Fri, 6 Mar 2020 20:38:38 +0100 Subject: src/projections/: remove assignments in expression and multiple statements per line Should hopefully result in no change in results, and hopefully more readable code... --- src/projections/vandg4.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/projections/vandg4.cpp') diff --git a/src/projections/vandg4.cpp b/src/projections/vandg4.cpp index a5cfd8e6..5d3e1885 100644 --- a/src/projections/vandg4.cpp +++ b/src/projections/vandg4.cpp @@ -32,7 +32,8 @@ static PJ_XY vandg4_s_forward (PJ_LP lp, PJ *P) { /* Spheroidal, forwa dt = sqrt(dt * dt - 4.); if ((fabs(lp.lam) - M_HALFPI) < 0.) dt = -dt; dt2 = dt * dt; - x1 = bt + ct; x1 *= x1; + x1 = bt + ct; + x1 *= x1; t = bt + 3.*ct; ft = x1 * (bt2 + ct2 * dt2 - 1.) + (1.-bt2) * ( bt2 * (t * t + 4. * ct2) + -- cgit v1.2.3