diff options
| author | Kurt Schwehr <schwehr@google.com> | 2018-05-04 09:01:27 -0700 |
|---|---|---|
| committer | Kurt Schwehr <schwehr@google.com> | 2018-05-04 09:01:27 -0700 |
| commit | 72016ab016efe153f475a38596586fecd5b996d2 (patch) | |
| tree | f2d168a20dcd482448bdf73799f2e209c1e3b91a /src/aasincos.c | |
| parent | 2f467d57d1846857eb8ac7e855646c19d6b66737 (diff) | |
| download | PROJ-72016ab016efe153f475a38596586fecd5b996d2.tar.gz PROJ-72016ab016efe153f475a38596586fecd5b996d2.zip | |
Convert errno literals to corresponding PJD symbol
Diffstat (limited to 'src/aasincos.c')
| -rw-r--r-- | src/aasincos.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/aasincos.c b/src/aasincos.c index 627ec14e..c3915613 100644 --- a/src/aasincos.c +++ b/src/aasincos.c @@ -9,7 +9,7 @@ aasin(projCtx ctx,double v) { if ((av = fabs(v)) >= 1.) { if (av > ONE_TOL) - pj_ctx_set_errno( ctx, -19 ); + pj_ctx_set_errno( ctx, PJD_ERR_ACOS_ASIN_ARG_TOO_LARGE ); return (v < 0. ? -M_HALFPI : M_HALFPI); } return asin(v); @@ -21,7 +21,7 @@ aacos(projCtx ctx, double v) { if ((av = fabs(v)) >= 1.) { if (av > ONE_TOL) - pj_ctx_set_errno( ctx, -19 ); + pj_ctx_set_errno( ctx, PJD_ERR_ACOS_ASIN_ARG_TOO_LARGE ); return (v < 0. ? M_PI : 0.); } return acos(v); |
