From 762c7ddb89bbddb2db36ee81981197fcf84db19c Mon Sep 17 00:00:00 2001 From: fredb Date: Tue, 1 Aug 2006 21:09:26 +0000 Subject: [PATCH] Olaf Flebbe : MSVC 2005 fix because time_t is defined as __int64 and there is no abs for this datatype --- src/Airports/dynamics.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5