1
0
Fork 0

Fix a couple of 64-bit warnings identified by Clang.

This commit is contained in:
James Turner 2012-11-25 21:35:17 +00:00
parent a74c99ec51
commit 979ca55197
2 changed files with 3 additions and 3 deletions

View 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(),

View 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);