aboutsummaryrefslogtreecommitdiff
path: root/src/pj_inv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pj_inv.c')
-rw-r--r--src/pj_inv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pj_inv.c b/src/pj_inv.c
index 711a0005..9a341769 100644
--- a/src/pj_inv.c
+++ b/src/pj_inv.c
@@ -30,7 +30,7 @@ pj_inv(XY xy, PJ *P) {
lp.lam += P->lam0; /* reduce from del lp.lam */
if (!P->over)
lp.lam = adjlon(lp.lam); /* adjust longitude to CM */
- if (P->geoc && fabs(fabs(lp.phi)-HALFPI) > EPS)
+ if (P->geoc && fabs(fabs(lp.phi)-M_HALFPI) > EPS)
lp.phi = atan(P->one_es * tan(lp.phi));
}
}