]> git.mxchange.org Git - flightgear.git/commitdiff
Fixed abs() vs. fabs() typo.
authorcurt <curt>
Thu, 23 Dec 1999 17:35:10 +0000 (17:35 +0000)
committercurt <curt>
Thu, 23 Dec 1999 17:35:10 +0000 (17:35 +0000)
src/WeatherCM/FGPhysicalProperties.cpp

index 966b321c0b7b0e3b5b0db5fcda5f8aae10c8a998..2802ebbbf522fe95b9eea2a3b48f220a7553903e 100644 (file)
@@ -143,7 +143,7 @@ ostream& operator<< ( ostream& out, const FGPhysicalProperties2D& p )
 inline double F(const WeatherPrecision factor, const WeatherPrecision a, const WeatherPrecision b, const WeatherPrecision r, const WeatherPrecision x)
 {
     const double c = 1.0 / (-b + a * r);
-    return factor * c * ( 1.0 / (r + x) + a * c * log(abs((r + x) * (b + a * x))) );
+    return factor * c * ( 1.0 / (r + x) + a * c * log(fabs((r + x) * (b + a * x))) );
 }
 
 WeatherPrecision FGPhysicalProperties::AirPressureAt(const WeatherPrecision x) const