aboutsummaryrefslogtreecommitdiff
path: root/src/projections/laea.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-02-18 22:50:16 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-02-18 22:50:16 +0100
commit2b1cf12bf36e536cd29994951b46f180e81e1179 (patch)
tree9e49a7b998f27b5a11bff304461baa836212420a /src/projections/laea.cpp
parent97016c7f7b74bd473c446ee128d1774209eddfc0 (diff)
downloadPROJ-2b1cf12bf36e536cd29994951b46f180e81e1179.tar.gz
PROJ-2b1cf12bf36e536cd29994951b46f180e81e1179.zip
Fix a few issues with i386 builds
Relax tolerances in a few unit test, and in laea code. Seen with gcc 5.3 and also 7.1 Related to the use of the 387 floating-point math, since they disappear with gcc 7.1 if using non-default -mfpmath=sse -msse
Diffstat (limited to 'src/projections/laea.cpp')
-rw-r--r--src/projections/laea.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/projections/laea.cpp b/src/projections/laea.cpp
index e3c7248a..22fb1691 100644
--- a/src/projections/laea.cpp
+++ b/src/projections/laea.cpp
@@ -82,7 +82,7 @@ eqcon:
break;
case N_POLE:
case S_POLE:
- if (q >= 0.) {
+ if (q >= 1e-15) {
b = sqrt(q);
xy.x = b * sinlam;
xy.y = coslam * (Q->mode == S_POLE ? b : -b);