diff options
Diffstat (limited to 'src/PJ_aea.c')
| -rw-r--r-- | src/PJ_aea.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PJ_aea.c b/src/PJ_aea.c index 6ad5e9f0..447d9755 100644 --- a/src/PJ_aea.c +++ b/src/PJ_aea.c @@ -55,7 +55,7 @@ FORWARD(e_forward); /* ellipsoid & spheroid */ return (xy); } INVERSE(e_inverse) /* ellipsoid & spheroid */; - if (P->rho = hypot(xy.x, xy.y = P->rho0 - xy.y)) { + if( (P->rho = hypot(xy.x, xy.y = P->rho0 - xy.y)) != 0.0 ) { if (P->n < 0.) { P->rho = -P->rho; xy.x = -xy.x; @@ -90,7 +90,7 @@ setup(PJ *P) { P->n = sinphi = sin(P->phi1); cosphi = cos(P->phi1); secant = fabs(P->phi1 - P->phi2) >= EPS10; - if (P->ellips = P->es > 0.) { + if( (P->ellips = (P->es > 0.))) { double ml1, m1; if (!(P->en = pj_enfn(P->es))) E_ERROR_0; |
