aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_hgridshift.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/PJ_hgridshift.c')
-rw-r--r--src/PJ_hgridshift.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/PJ_hgridshift.c b/src/PJ_hgridshift.c
index 26a2f471..d57af697 100644
--- a/src/PJ_hgridshift.c
+++ b/src/PJ_hgridshift.c
@@ -105,8 +105,9 @@ int pj_hgridshift_selftest (void) {
a = proj_coord (0,0,0,0);
a.lpz.lam = PJ_TORAD(173);
a.lpz.phi = PJ_TORAD(-45);
+ b = a;
- dist = proj_roundtrip (P, PJ_FWD, 1, a);
+ dist = proj_roundtrip (P, PJ_FWD, 1, &b);
if (dist > 0.00000001) {
printf("dist: %f\n",dist);
return 1;