From 7ddc71dd136f680ef72091d35c477db6f6f4ef7c Mon Sep 17 00:00:00 2001 From: mfranz Date: Sun, 14 May 2006 11:14:49 +0000 Subject: [PATCH] fix data type (no wonder that this crashes on 64 bit systems :-) --- src/Autopilot/route_mgr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Autopilot/route_mgr.cxx b/src/Autopilot/route_mgr.cxx index 3e7c03177..f9175aa1e 100644 --- a/src/Autopilot/route_mgr.cxx +++ b/src/Autopilot/route_mgr.cxx @@ -305,7 +305,7 @@ int FGRouteMgr::make_waypoint( SGWayPoint **wp, const string& tgt ) { // extract altitude double alt = -9999.0; - unsigned int pos = target.find( '@' ); + size_t pos = target.find( '@' ); if ( pos != string::npos ) { alt = atof( target.c_str() + pos + 1 ); target = target.substr( 0, pos );