]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a clang warning.
authorJames Turner <zakalawe@mac.com>
Sat, 11 Apr 2015 20:59:01 +0000 (21:59 +0100)
committerJames Turner <zakalawe@mac.com>
Sat, 11 Apr 2015 20:59:01 +0000 (21:59 +0100)
src/Airports/dynamics.cxx

index 5916c68b0645080e0933249d3833bb040bfb7cb7..5d5ed0557a374bb1aa33e79b6d6cf5e7414aae22 100644 (file)
@@ -298,7 +298,7 @@ bool FGAirportDynamics::innerGetActiveRunway(const string & trafficType,
     RunwayGroup *currRunwayGroup = 0;
     int nrActiveRunways = 0;
     time_t dayStart = fgGetLong("/sim/time/utc/day-seconds");
-    if ((abs((long) (dayStart - lastUpdate)) > 600)
+    if ((std::abs((long) (dayStart - lastUpdate)) > 600)
         || trafficType != prevTrafficType) {
         landing.clear();
         takeoff.clear();