From 57811b53710f0bd2529621d1c8a7b2f3cd7698f9 Mon Sep 17 00:00:00 2001 From: curt Date: Sat, 27 Jan 2001 01:53:11 +0000 Subject: [PATCH] Tweaks to errno checking and perror. --- simgear/math/sg_geodesy.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/simgear/math/sg_geodesy.cxx b/simgear/math/sg_geodesy.cxx index 39815308..b07ed2a1 100644 --- a/simgear/math/sg_geodesy.cxx +++ b/simgear/math/sg_geodesy.cxx @@ -142,6 +142,10 @@ void sgGeodToGeoc( double lat_geod, double alt, double *sl_radius, { double lambda_sl, sin_lambda_sl, cos_lambda_sl, sin_mu, cos_mu, px, py; +#ifdef DOMAIN_ERR_DEBUG + errno = 0; +#endif + lambda_sl = atan( E*E * tan(lat_geod) ); // sea level geocentric latitude sin_lambda_sl = sin( lambda_sl ); cos_lambda_sl = cos( lambda_sl ); -- 2.39.5