]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATCDCL/ATCutils.cxx
Fix canvas gui size sometimes not initialized correct
[flightgear.git] / src / ATCDCL / ATCutils.cxx
index fe484f25674ca285017f8ef05a0cba989207b755..2960401728115670bf5e03693b32aa1f71bb0ef2 100644 (file)
@@ -23,8 +23,8 @@
 #endif
 
 #include <sstream>
+#include <cstdlib>
 
-#include <simgear/math/SGMath.hxx>
 #include <simgear/constants.h>
 #include <simgear/misc/sg_path.hxx>
 #include <simgear/debug/logstream.hxx>
@@ -86,7 +86,7 @@ string ConvertNumToSpokenDigits(const int& n) {
 // Anything else is not guaranteed to be handled correctly!
 string ConvertRwyNumToSpokenString(const string &rwy) {
   string rslt;
-  for (int ii = 0; ii < rwy.length(); ii++){
+  for (size_t ii = 0; ii < rwy.length(); ii++){
     if (rslt.length()) rslt += " ";
     string ch = rwy.substr(ii,1);
     if (isdigit(ch[0])) rslt += ConvertNumToSpokenDigits(atoi(ch.c_str()));
@@ -268,4 +268,4 @@ bool OnRunway(const SGGeod& pt, const FGRunwayBase* rwy) {
        
        return(false);
 }
-       
+