diff options
Diffstat (limited to 'src/PJ_lcc.c')
| -rw-r--r-- | src/PJ_lcc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PJ_lcc.c b/src/PJ_lcc.c index 9e697cd9..68cc895b 100644 --- a/src/PJ_lcc.c +++ b/src/PJ_lcc.c @@ -29,7 +29,7 @@ FORWARD(e_forward); /* ellipsoid & spheroid */ INVERSE(e_inverse); /* ellipsoid & spheroid */ xy.x /= P->k0; xy.y /= P->k0; - 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; @@ -77,7 +77,7 @@ ENTRY0(lcc) 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; P->e = sqrt(P->es); |
