aboutsummaryrefslogtreecommitdiff
path: root/src/projections/tcc.cpp
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2020-03-09 10:25:08 +0100
committerGitHub <noreply@github.com>2020-03-09 10:25:08 +0100
commit46c47e9adf6376ae06afabe5d24a0016a05ced82 (patch)
tree52c871c17f0c98c90ce6415cdb79dc1e73c14f4d /src/projections/tcc.cpp
parent38ec5e662a74d40e02e38dc5dca553c3ecb04356 (diff)
parent60d3df673ca224107eb63e459073fc11ab5f4f16 (diff)
downloadPROJ-46c47e9adf6376ae06afabe5d24a0016a05ced82.tar.gz
PROJ-46c47e9adf6376ae06afabe5d24a0016a05ced82.zip
Merge pull request #2025 from rouault/projections_remove_assignments_in_expressions
src/projections/: remove assignments in expression and multiple statements per line
Diffstat (limited to 'src/projections/tcc.cpp')
-rw-r--r--src/projections/tcc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/projections/tcc.cpp b/src/projections/tcc.cpp
index 3dd47940..9413b567 100644
--- a/src/projections/tcc.cpp
+++ b/src/projections/tcc.cpp
@@ -12,10 +12,10 @@ PROJ_HEAD(tcc, "Transverse Central Cylindrical") "\n\tCyl, Sph, no inv";
static PJ_XY tcc_s_forward (PJ_LP lp, PJ *P) { /* Spheroidal, forward */
PJ_XY xy = {0.0, 0.0};
- double b, bt;
- b = cos (lp.phi) * sin (lp.lam);
- if ((bt = 1. - b * b) < EPS10) {
+ const double b = cos (lp.phi) * sin (lp.lam);
+ const double bt = 1. - b * b;
+ if (bt < EPS10) {
proj_errno_set(P, PJD_ERR_TOLERANCE_CONDITION);
return xy;
}