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/putp4p.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/projections/putp4p.cpp') diff --git a/src/projections/putp4p.cpp b/src/projections/putp4p.cpp index a5728b74..365f7c1b 100644 --- a/src/projections/putp4p.cpp +++ b/src/projections/putp4p.cpp @@ -22,7 +22,8 @@ static PJ_XY putp4p_s_forward (PJ_LP lp, PJ *P) { /* Spheroidal, forwa lp.phi = aasin(P->ctx,0.883883476 * sin(lp.phi)); xy.x = Q->C_x * lp.lam * cos(lp.phi); - xy.x /= cos(lp.phi *= 0.333333333333333); + lp.phi *= 0.333333333333333; + xy.x /= cos(lp.phi); xy.y = Q->C_y * sin(lp.phi); return xy; -- cgit v1.2.3