]> git.mxchange.org Git - simgear.git/commitdiff
Tweaks to errno checking and perror.
authorcurt <curt>
Sat, 27 Jan 2001 01:53:11 +0000 (01:53 +0000)
committercurt <curt>
Sat, 27 Jan 2001 01:53:11 +0000 (01:53 +0000)
simgear/math/sg_geodesy.cxx

index 3981530885f7e66e07ecaa38dbc00a408c964c88..b07ed2a1d3b59682aa7343cbb58f77c13f21fb4a 100644 (file)
@@ -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 );