aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_eck2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/PJ_eck2.c')
-rw-r--r--src/PJ_eck2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PJ_eck2.c b/src/PJ_eck2.c
index 6d73b88a..c6eac8b2 100644
--- a/src/PJ_eck2.c
+++ b/src/PJ_eck2.c
@@ -30,7 +30,7 @@ static LP s_inverse (XY xy, PJ *P) { /* Spheroidal, inverse */
if (fabs(lp.phi) >= 1.) {
if (fabs(lp.phi) > ONEEPS) I_ERROR
else
- lp.phi = lp.phi < 0. ? -HALFPI : HALFPI;
+ lp.phi = lp.phi < 0. ? -M_HALFPI : M_HALFPI;
} else
lp.phi = asin(lp.phi);
if (xy.y < 0)