]> git.mxchange.org Git - flightgear.git/commitdiff
warning fix: use correct type for std::string::find reply
authorTorsten Dreyer <torsten@ŧ3r.de>
Fri, 13 Mar 2015 21:57:03 +0000 (22:57 +0100)
committerTorsten Dreyer <torsten@ŧ3r.de>
Fri, 13 Mar 2015 21:57:03 +0000 (22:57 +0100)
src/Main/util.cxx

index b5ea49dc6c6c8253852425b81d456b63f5b79e24..15f7158d506d366913f08c8a55d517ef742d4940 100644 (file)
@@ -171,7 +171,7 @@ static std::string fgNormalizePath (const std::string& path)
 std::string fgValidatePath (const std::string& path, bool write)
 {
     const string_list& allowed_paths(write ? write_allowed_paths : read_allowed_paths);
-    int star_pos;
+    size_t star_pos;
     
     // Normalize the path (prevents ../../.. trickery)
     std::string normed_path = fgNormalizePath(path);