From: Torsten Dreyer Date: Fri, 13 Mar 2015 21:57:03 +0000 (+0100) Subject: warning fix: use correct type for std::string::find reply X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=817297699ff2709825bb11484ebdc2ec83687a5b;p=flightgear.git warning fix: use correct type for std::string::find reply --- diff --git a/src/Main/util.cxx b/src/Main/util.cxx index b5ea49dc6..15f7158d5 100644 --- a/src/Main/util.cxx +++ b/src/Main/util.cxx @@ -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);