diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-02-08 14:49:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-08 14:49:48 +0100 |
| commit | 98f38e4b5792ce918e978214d8bb43e181cf5c06 (patch) | |
| tree | bfbfd36fa76a8b283eff0362786f169024a6d581 /src/projections/robin.cpp | |
| parent | 20e9bdea538efea120e4aa48ba4847c28679dc99 (diff) | |
| parent | a5d856771e0679874bcbd12ac66ec5ab9c004d11 (diff) | |
| download | PROJ-98f38e4b5792ce918e978214d8bb43e181cf5c06.tar.gz PROJ-98f38e4b5792ce918e978214d8bb43e181cf5c06.zip | |
Merge pull request #1919 from rouault/backport_fix_for_1906
[Backport 6.3] fixes for #1906 (test failures on i386)
Diffstat (limited to 'src/projections/robin.cpp')
| -rw-r--r-- | src/projections/robin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/projections/robin.cpp b/src/projections/robin.cpp index 2e36106a..5a3b081c 100644 --- a/src/projections/robin.cpp +++ b/src/projections/robin.cpp @@ -84,7 +84,7 @@ static PJ_XY robin_s_forward (PJ_LP lp, PJ *P) { /* Spheroidal, forwar (void) P; dphi = fabs(lp.phi); - i = isnan(lp.phi) ? -1 : lround(floor(dphi * C1)); + i = isnan(lp.phi) ? -1 : lround(floor(dphi * C1 + 1e-15)); if( i < 0 ){ proj_errno_set(P, PJD_ERR_TOLERANCE_CONDITION); return xy; |
