]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a couple of 64-bit warnings identified by Clang.
authorJames Turner <zakalawe@mac.com>
Sun, 25 Nov 2012 21:35:17 +0000 (21:35 +0000)
committerJames Turner <zakalawe@mac.com>
Sun, 25 Nov 2012 21:35:17 +0000 (21:35 +0000)
src/AIModel/AIFlightPlanCreate.cxx
src/AIModel/AIFlightPlanCreatePushBack.cxx

index 55b157f8a88835868b7fdee1cf4b028fa178c6d4..388516ffa27954978850226e2ad8db695330e1e6 100644 (file)
@@ -311,7 +311,7 @@ bool FGAIFlightPlan::createTakeoffTaxi(FGAIAircraft * ac, bool firstFlight,
     //cerr << "Building taxi route" << endl;
     while (taxiRoute.next(&node)) {
         char buffer[10];
-        snprintf(buffer, 10, "%ld", node);
+        snprintf(buffer, 10, "%lld", node);
         FGTaxiNode *tn =
             apt->getDynamics()->getGroundNetwork()->findNode(node);
         FGAIWaypoint *wpt =
@@ -416,7 +416,7 @@ bool FGAIFlightPlan::createLandingTaxi(FGAIAircraft * ac, FGAirport * apt,
     for (int i = 0; i < size - 2; i++) {
         taxiRoute.next(&node);
         char buffer[10];
-        snprintf(buffer, 10, "%ld", node);
+        snprintf(buffer, 10, "%lld", node);
         FGTaxiNode *tn = gn->findNode(node);
         FGAIWaypoint *wpt =
             createOnGround(ac, buffer, tn->geod(), apt->getElevation(),
index a205efcf41e299c4c7c353367b70147bc532efba..976463ccf74867e0396afe658fd41495627a4677 100644 (file)
@@ -98,7 +98,7 @@ bool FGAIFlightPlan::createPushBack(FGAIAircraft *ac,
         while (route.next(&node))
         {
             char buffer[10];
-            snprintf (buffer, 10, "%ld", node);
+            snprintf (buffer, 10, "%lld", node);
             FGTaxiNode *tn = groundNet->findNode(node);
             FGAIWaypoint *wpt = createOnGround(ac, string(buffer), tn->geod(), dep->getElevation(), vTaxiBackward);