aboutsummaryrefslogtreecommitdiff
path: root/src/geodtest.c
diff options
context:
space:
mode:
authorCharles Karney <charles@karney.com>2018-03-17 18:32:26 -0400
committerCharles Karney <charles@karney.com>2018-03-17 18:32:26 -0400
commitca880f497aa9eeff9eccea7ab0168a4fed73d411 (patch)
treeab83bd97591e637c394bbffa889b6231f111ba31 /src/geodtest.c
parentdb3e0ae30446498cec7e7f931d9be2ed65547691 (diff)
downloadPROJ-ca880f497aa9eeff9eccea7ab0168a4fed73d411.tar.gz
PROJ-ca880f497aa9eeff9eccea7ab0168a4fed73d411.zip
Patch 1.49.3 for geodesic package.
Set flags for Intel compiler to prevent incorrect optimization of arithmetic expressions #826. Guard against nans in sincosdx #834. Issue #831 is not addressed here (need more information...).
Diffstat (limited to 'src/geodtest.c')
-rw-r--r--src/geodtest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/geodtest.c b/src/geodtest.c
index 8cc48134..1025ce08 100644
--- a/src/geodtest.c
+++ b/src/geodtest.c
@@ -616,7 +616,8 @@ static int GeodSolve73() {
&lat2, &lon2, &azi2);
result += assertEquals(lat2, 81.04623, 0.5e-5);
result += assertEquals(lon2, -170, 0.5e-5);
- result += assertEquals(azi2, 0, 0.5e-5);
+ result += azi2 == 0 ? 0 : 1;
+ result += 1/azi2 > 0 ? 0 : 1; /* Check that azi2 = +0.0 not -0.0 */
return result;
}