aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/PJ_imw_p.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PJ_imw_p.c b/src/PJ_imw_p.c
index 4c1b5e45..abed5006 100644
--- a/src/PJ_imw_p.c
+++ b/src/PJ_imw_p.c
@@ -32,7 +32,7 @@ static int phi12(PJ *P, double *del, double *sig) {
if (!pj_param(P->ctx, P->params, "tlat_1").i ||
!pj_param(P->ctx, P->params, "tlat_2").i) {
- err = -41;
+ err = PJD_ERR_LAT_1_2_UNSPECIFIED;
} else {
Q->phi_1 = pj_param(P->ctx, P->params, "rlat_1").f;
Q->phi_2 = pj_param(P->ctx, P->params, "rlat_2").f;