From ca880f497aa9eeff9eccea7ab0168a4fed73d411 Mon Sep 17 00:00:00 2001 From: Charles Karney Date: Sat, 17 Mar 2018 18:32:26 -0400 Subject: 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...). --- src/geodtest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/geodtest.c') 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; } -- cgit v1.2.3