From: mfranz Date: Sun, 14 May 2006 11:14:49 +0000 (+0000) Subject: fix data type (no wonder that this crashes on 64 bit systems :-) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7ddc71dd136f680ef72091d35c477db6f6f4ef7c;p=flightgear.git fix data type (no wonder that this crashes on 64 bit systems :-) --- 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 );