Fixed compiler warnings
authorIngo Ruhnke <grumbel@gmail.com>
Sun, 3 Aug 2014 04:00:20 +0000 (06:00 +0200)
committerIngo Ruhnke <grumbel@gmail.com>
Sun, 3 Aug 2014 04:00:20 +0000 (06:00 +0200)
src/lisp/parser.cpp
src/supertux/main.cpp

index f9759dc..701091b 100644 (file)
@@ -36,8 +36,8 @@ Parser::Parser(bool translate) :
   dictionary_manager(0), 
   dictionary(0),
   token(),
-  obst(),
-  searchpath()
+  searchpath(),
+  obst()
 {
   if(translate) {
     dictionary_manager = new tinygettext::DictionaryManager();
index 5958a92..3cd0912 100644 (file)
@@ -582,7 +582,7 @@ Main::run(int argc, char** argv)
       // So we simply mount that path here...
       std::string dir = FileSystem::dirname(g_config->start_level);
       std::string fileProtocol = "file://";
-      int position = dir.find(fileProtocol);
+      std::string::size_type position = dir.find(fileProtocol);
       if(position != std::string::npos) {
          dir = dir.replace(position, fileProtocol.length(), "");
       }