Fix compiler warning with sprintf format
since PositionedID is "long int", not "long long int".
This commit is contained in:
parent
846a838c70
commit
4a53002784
2 changed files with 3 additions and 3 deletions
|
@ -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(),
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue