aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_putp2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/PJ_putp2.c')
-rw-r--r--src/PJ_putp2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PJ_putp2.c b/src/PJ_putp2.c
index e846f13b..33bc67ae 100644
--- a/src/PJ_putp2.c
+++ b/src/PJ_putp2.c
@@ -31,9 +31,9 @@ FORWARD(s_forward); /* spheroid */
INVERSE(s_inverse); /* spheroid */
double c;
- lp.phi = aasin(xy.y / C_y);
+ lp.phi = aasin(P->ctx,xy.y / C_y);
lp.lam = xy.x / (C_x * ((c = cos(lp.phi)) - 0.5));
- lp.phi = aasin((lp.phi + sin(lp.phi) * (c - 1.)) / C_p);
+ lp.phi = aasin(P->ctx,(lp.phi + sin(lp.phi) * (c - 1.)) / C_p);
return (lp);
}
FREEUP; if (P) pj_dalloc(P); }