diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2020-02-08 10:17:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-08 10:17:18 +0100 |
| commit | ead6a66d9830e1f3e0f49a9d46fcd500f342f20f (patch) | |
| tree | 960c4a5511f10fca7f51e1bd1176485bfc9f2204 /src/projections/robin.cpp | |
| parent | b6f442db6c6b8a05fb9d824729cb4593e519edf8 (diff) | |
| parent | 7001c21828420f027f5984132d551af99794f1e4 (diff) | |
| download | PROJ-ead6a66d9830e1f3e0f49a9d46fcd500f342f20f.tar.gz PROJ-ead6a66d9830e1f3e0f49a9d46fcd500f342f20f.zip | |
Merge pull request #1917 from rouault/fix_test_issues_on_i386
Fix test issues 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; |
