From: curt Date: Sat, 27 Jan 2001 01:53:11 +0000 (+0000) Subject: Tweaks to errno checking and perror. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=57811b53710f0bd2529621d1c8a7b2f3cd7698f9;p=simgear.git Tweaks to errno checking and perror. --- 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 );