diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-02-07 01:39:45 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-02-07 11:08:43 +0100 |
| commit | 7001c21828420f027f5984132d551af99794f1e4 (patch) | |
| tree | c5904bb273af1e1020966db45a6afd691add76fa /src/projections/robin.cpp | |
| parent | 19bfb4987a8085d3ec1c8f29423866f884fdbd1f (diff) | |
| download | PROJ-7001c21828420f027f5984132d551af99794f1e4.tar.gz PROJ-7001c21828420f027f5984132d551af99794f1e4.zip | |
Fix numerical precision issues in vandg and robin
Refs #1906
Fix remaining issues of https://github.com/OSGeo/PROJ/issues/1906#issuecomment-583168348
as found with gcc 8.2.0 -m32 -O2
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; |
