From: fredb Date: Tue, 1 Aug 2006 21:09:26 +0000 (+0000) Subject: Olaf Flebbe : MSVC 2005 fix because time_t is defined as __int64 and there is no... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=762c7ddb89bbddb2db36ee81981197fcf84db19c;p=flightgear.git Olaf Flebbe : MSVC 2005 fix because time_t is defined as __int64 and there is no abs for this datatype --- diff --git a/src/Airports/dynamics.cxx b/src/Airports/dynamics.cxx index 60289c623..9a3dcacc2 100644 --- a/src/Airports/dynamics.cxx +++ b/src/Airports/dynamics.cxx @@ -465,7 +465,7 @@ void FGAirportDynamics::getActiveRunway(const string &trafficType, int action, s RunwayGroup *currRunwayGroup = 0; int nrActiveRunways = 0; time_t dayStart = fgGetLong("/sim/time/utc/day-seconds"); - if ((abs(dayStart - lastUpdate) > 600) || trafficType != prevTrafficType) + if ((abs((long)(dayStart - lastUpdate)) > 600) || trafficType != prevTrafficType) { landing.clear(); takeoff.clear();