From 2b1cf12bf36e536cd29994951b46f180e81e1179 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Mon, 18 Feb 2019 22:50:16 +0100 Subject: 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 --- src/projections/laea.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/projections/laea.cpp') 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); -- cgit v1.2.3