From 4a53002784ee9aaf9fccd621cdba5b7e9d4bcfb2 Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Wed, 21 Nov 2012 20:54:41 +0100 Subject: [PATCH] Fix compiler warning with sprintf format since PositionedID is "long int", not "long long int". --- src/AIModel/AIFlightPlanCreate.cxx | 4 ++-- src/AIModel/AIFlightPlanCreatePushBack.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/AIModel/AIFlightPlanCreate.cxx b/src/AIModel/AIFlightPlanCreate.cxx index 92b901bce..7419552de 100644 --- a/src/AIModel/AIFlightPlanCreate.cxx +++ b/src/AIModel/AIFlightPlanCreate.cxx @@ -310,7 +310,7 @@ bool FGAIFlightPlan::createTakeoffTaxi(FGAIAircraft * ac, bool firstFlight, //cerr << "Building taxi route" << endl; while (taxiRoute.next(&node)) { char buffer[10]; - snprintf(buffer, 10, "%lld", node); + snprintf(buffer, 10, "%ld", node); FGTaxiNode *tn = apt->getDynamics()->getGroundNetwork()->findNode(node); FGAIWaypoint *wpt = @@ -415,7 +415,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, "%lld", node); + snprintf(buffer, 10, "%ld", node); FGTaxiNode *tn = gn->findNode(node); FGAIWaypoint *wpt = createOnGround(ac, buffer, tn->geod(), apt->getElevation(), diff --git a/src/AIModel/AIFlightPlanCreatePushBack.cxx b/src/AIModel/AIFlightPlanCreatePushBack.cxx index 976463ccf..a205efcf4 100644 --- a/src/AIModel/AIFlightPlanCreatePushBack.cxx +++ b/src/AIModel/AIFlightPlanCreatePushBack.cxx @@ -98,7 +98,7 @@ bool FGAIFlightPlan::createPushBack(FGAIAircraft *ac, while (route.next(&node)) { char buffer[10]; - snprintf (buffer, 10, "%lld", node); + snprintf (buffer, 10, "%ld", node); FGTaxiNode *tn = groundNet->findNode(node); FGAIWaypoint *wpt = createOnGround(ac, string(buffer), tn->geod(), dep->getElevation(), vTaxiBackward); -- 2.39.5